Perl Monk, Perl Meditation | |
PerlMonks |
regex to split on ' ', but skip spaces inside quotesby true_atlantis (Acolyte) |
on Sep 21, 2007 at 20:52 UTC ( [id://640437]=perlquestion: print w/replies, xml ) | Need Help?? |
true_atlantis has asked for the wisdom of the Perl Monks concerning the following question:
is there a way to do a split regular expression which will split on space, unless the space is in between quotes? for example: hi my name is 'john doe' would parse to: hi my name is 'john doe' thanks!
Back to
Seekers of Perl Wisdom
|
|