The strong implication of your questions is that you need to write some sort of parser for a report description language that entails SQL potted inside a (presumably) light weight control language. I suggest you read the documentation for Parse::RecDescent to get a feel for what you are up against in trying to parse such a thing. A good starting point would be to find or generate a grammar for the reporting language.
Let me reiterate: "My guess is that that could be a pretty big job."! Nibbling around the edges with a few regular expressions to try solving the problem piecemeal and coming back to us a couple of times a day to get a regex for the next piece is neither a good use of you time nor of ours.
In reply to Re^3: Converting Oracle report language code into perl
by GrandFather
in thread Converting Oracle report language code into perl
by denzil_cactus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |