Oh wise and learned monks:
Given an arbitrary string of space-separated words, 'tis easy to use @list = split(' ',$string); to break the string into words. But assume the string has some quote-delimited substrings, as in
one "two three" four five "six seven eight" nineand I want the end result list to be
@list = ('one', 'two three', 'four', 'five', 'six seven eight', 'nine');Can this be done with a single regex?
In reply to In need of a stupid regex trick by 87C751
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |