If there are (?), then what you need to do is parse the thing from left to right, collecting parts as you go, instead of trying to parse it all at once. A recursive algorithm would be good, or you could just go use existing parser-creators, like Parse::RecDescent or Parse::Yapp.
C.
In reply to Re: parse a query string
by castaway
in thread parse a query string
by ctaustin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |