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]
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]
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=
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
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