This is a regex solution, just a simplified one!
Almost all parsing can be looked at as:
The only edge cases that will be missed are ones for which there is probably no robust solution. These are:
The thing with a multistage parse is that it is transparent. Because each stage only does a little thing debugging is likely to be far easier and less (un)likely to break the downstream parts.
Cheers
tachyon
In reply to Re^4: Okay, I know why is it failing
by tachyon-II
in thread This regular expression has me stumped
by tsk1979
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |