Generate a list of words and quoted strings (allowing quoted quotes). For example:
two words "and a \"quoted\" string" -> two words "and a \"quoted\" string"
my @fields = m/\s* ("(?:(?!(?<!\\)").)*" | '(?:(?!(?<!\\)').)*' | +\S+)/gx;
In reply to Parse line into fields of words and quoted strings by GrandFather
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |