Here's another one:
use Data::Dumper; my $string = '"quoted" foo foo "joe smoe" bar baz quux "trapped inside + here" matrix2:reloaded sucked'; print Dumper [split /\s+("(?:[^"\\]|\\")*"|[^\s]+)(?(?!\s+")\s+)/, $st +ring];
In reply to Re: Two Eclectic split()s
by jryan
in thread Two Eclectic split()s
by japhy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |