use Text::ParseWords qw(quotewords); my $line = q(hi my name is 'john doe'); @words =quotewords(' ', 0, $line); print join "\n", @words,"\n";
In reply to Re: regex to split on ' ', but skip spaces inside quotes
by artist
in thread regex to split on ' ', but skip spaces inside quotes
by true_atlantis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |