|Welcome to the Monastery|
Another for those who love the Regular Expression questions...by Hot Pastrami (Monk)
|on Aug 14, 2000 at 23:35 UTC||Need Help??|
Hot Pastrami has asked for the wisdom of the Perl Monks concerning the following question:
Greetings and hello, my dear friends!
This morning I finally ordered "Mastering Regular Expressions," so perhaps I can begin a less failure-riddled campaign in learning the uglies of Regular Expressions. It won't arrive for a week, though, so I wonder if soebody wouldn't mind fielding this one in the interim:
Let's say I have the following string:
...and I need to break it down as such:
It basically needs to be split on spaces, but keep quoted strings together. I'm sure there is an alarmingly simple solution which my unspeakable ignorance has caused me to overlook, and perhaps one of you could point it out in some embarrassing way. You'll have my gratitude, as always.
Alan "Hot Pastrami" Bellows
-Sitting calmly with scissors-