more useful options | |
PerlMonks |
Re: need to parse firts part of SQL-query (regex question)by johngg (Canon) |
on Jan 17, 2008 at 17:13 UTC ( [id://662921]=note: print w/replies, xml ) | Need Help?? |
You can attack this from both ends of the string using split with a third argument limiting the number of resultant fields and reverse.
Here's the output.
The use of spaces with commas was inconsistent so I decided to discard the spaces during the split. Cheers, JohnGG
In Section
Seekers of Perl Wisdom
|
|