Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: RFC: Perl regex to validate arithmetic expressionsby Fox (Pilgrim) |
on Feb 21, 2011 at 16:57 UTC ( [id://889420]=note: print w/replies, xml ) | Need Help?? |
That's pretty cool, I didn't knew about the re 'eval' and this just opened my mind to a whole new class of solutions using these 'recursive' regexes.
I just don't like the lack of whitespace, maybe you could allow it by adding a s/\s//g before the main test ? not sure if it will break the test.
In Section
Meditations
|
|