There are some things I don't understand about your code:
Perhaps there is more to the spec than originally stated, but the suspicion is that you might be over-complicating it a little.
In reply to Re: Issue with regex matching
by hippo
in thread Issue with regex matching
by sowais
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |