Your regex doesn't match any of them correctly.q [Jon [Maddog] Orwant]; q "Jon \"Maddog\" Orwant";
You might be best off using Text::Balanced.
Abigail
In reply to Re: [regex] matching Perl quoted strings
by Abigail-II
in thread [regex] matching Perl quoted strings
by Jaap
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |