Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: RFC: Perl regex to validate arithmetic expressionsby mellon85 (Monk) |
on Feb 21, 2011 at 18:53 UTC ( [id://889463]=note: print w/replies, xml ) | Need Help?? |
You actually can parse an arithmetic expression with a "regular" expression if it uses a stack automata.
Just think that a regular language can't even check if there is a correct number of parenthesis if the maximum depth is undefined, as such, strictly speaking that is not so much regular...
In Section
Meditations
|
|