What I would suggest is breaking your logic (and code) up into chunks:
I'm sure there's a regex that would do everything in one swell foop, but my regex mojo hasn't fully wakened yet.
In reply to Re: handling erronous input
by swampyankee
in thread handling erronous input
by Conal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |