Re: Splitting OR Regex

2003-11-07 Thread Rob Dixon
R. Joseph Newton wrote: > > Rob Dixon wrote: > > > my @fields = $string =~ m/\w+=(?:"[^"]+"|\S+)/g; > > Nice!! Thanks! Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Splitting OR Regex

2003-11-06 Thread R. Joseph Newton
Rob Dixon wrote: > my @fields = $string =~ m/\w+=(?:"[^"]+"|\S+)/g; Nice!! Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Splitting OR Regex

2003-10-31 Thread Rob Dixon
Joshua Scott wrote: > > How can I split the data in a line by a single whitespace but also keep > portions between quotes together? Here is an example of a line of data I'm > trying to parse: > > id=firewall time="2003-10-30 04:15:01" fw=66.74.67.229 pri=5 c=256 m=38 > msg="ICMP packet dropped" n=

Re: Splitting OR Regex

2003-10-31 Thread Tore Aursand
On Thu, 30 Oct 2003 23:37:55 -0500, Scott, Joshua wrote: > How can I split the data in a line by a single whitespace but also keep > portions between quotes together? This is a FAQ: perldoc -q delimit -- Tore Aursand <[EMAIL PROTECTED]> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For add

Splitting OR Regex

2003-10-30 Thread Scott, Joshua
Hello, How can I split the data in a line by a single whitespace but also keep portions between quotes together? Here is an example of a line of data I'm trying to parse: id=firewall time="2003-10-30 04:15:01" fw=66.74.67.229 pri=5 c=256 m=38 msg="ICMP packet dropped" n=63211 src=1.1.1.1 dst=2.2