A
Ash
Hi
I need help with a regex to substitute all spaces with commas, but not
those spaces that lie within double quotes or square brackets.
Input string (this is one long string)
201.7.42.5 - - [12/Dec/2005:10:34:34 +0000] "GET
/liveupdate-aka.symantec.com/1132200683jtun_ennfull
2.x86 HTTP/1.1" 000 2579078 "-" "Symantec LiveUpdate" "-"
Expected Output
201.7.42.5,-,-,[12/Dec/2005:10:34:34 +0000],"GET
/liveupdate-aka.symantec.com/1132200683jtun_ennfull
2.x86 HTTP/1.1",000,2579078,"-","Symantec LiveUpdate","-"
thanks
Ash
I need help with a regex to substitute all spaces with commas, but not
those spaces that lie within double quotes or square brackets.
Input string (this is one long string)
201.7.42.5 - - [12/Dec/2005:10:34:34 +0000] "GET
/liveupdate-aka.symantec.com/1132200683jtun_ennfull
2.x86 HTTP/1.1" 000 2579078 "-" "Symantec LiveUpdate" "-"
Expected Output
201.7.42.5,-,-,[12/Dec/2005:10:34:34 +0000],"GET
/liveupdate-aka.symantec.com/1132200683jtun_ennfull
2.x86 HTTP/1.1",000,2579078,"-","Symantec LiveUpdate","-"
thanks
Ash