Sorry, but I just read your post through 3 times, and I have literally no idea what it is that you are trying to convey.
Your first post was an (apparently not ao) clear definition of possible inputs and required output. The above sounds like you're making it up as you go along. Totally unintelligible.
My suggestion to you is that you post some real examples of the actual input. And then some matching examples of what output you would require from each of those inputs. If you cannot do that, this is probably not a real problem.
In reply to Re^3: string matching
by BrowserUk
in thread string matching
by newbio
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |