The problem is that I really want to do it with a single regex because of the current flow of the program.
Then rework the current flow of the program. A single regex is not the tool you need. Text::Balanced is. Have you read the docs for Text::Balanced yet? It may be that you don't have to redesign your program all that much to use it.
Perhaps you could maintain the current flow if you wrap the dirty-work done by Text::Balanced in a subroutine.
Dave
In reply to Re: Re: Re: [regex] matching Perl quoted strings
by davido
in thread [regex] matching Perl quoted strings
by Jaap
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |