Careful with that axe. http://groups.google.com/groups?selm=20051012003112.GG4432@iabyn.commy ($skip, $re, $expr, $term); $skip = qr! \s* !x; $re = qr! ^ (??{ $expr }) (??{ $skip }) \z !x; $expr = qr! (??{ $term }) (?: (??{ $skip }) [-+*/] (??{ $term }) )* !x;
In reply to Re^2: Complex regex for maths formulas
by ysth
in thread Complex regex for maths formulas
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |