Statements that sneakily alter the control flow are indeed bad style.
There are many alternative forms to choose from.
Bottom line is, it sounds like you really need a lexer/scanner, not contorted regexes. Could you give more information pertaining to the problem at hand (the purpose of the wheel you're building)?
In reply to Re: use return in regex => allowed or side effects ?
by Anonymous Monk
in thread use return in regex => allowed or side effects ?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |