ManyCrows has asked for the wisdom of the Perl Monks concerning the following question:
I've been trying to write a sub to return an array of words and quote-delimited phrases when passed a string, but I can't seem to get the regular expression right no matter what I do.
I don't need to deal with arbitrary nesting. In fact I'm only going one level deep. I also don't need balanced text parsing, i truly just want the quote-delimited phrases and the words, hopefully with a single regexp.
Suggestions? Pointers? Answers?
Gracias!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: phrase and word searching
by chipmunk (Parson) on Jun 01, 2001 at 00:16 UTC | |
by ManyCrows (Novice) on Jun 01, 2001 at 01:52 UTC | |
|
(jeffa) Re: phrase and word searching
by jeffa (Bishop) on Jun 01, 2001 at 00:29 UTC | |
by Vynce (Friar) on Jun 01, 2001 at 07:38 UTC |