?
=?iso-8859-1?B?bW9vcJk=?=
Hi,
How to match a mathematical expression in a single regular expression?
How to match a mathematical expression in a single regular expression?
moopT said:How to match a mathematical expression in a single regular expression?
moop™ said:Hi,
How to match a mathematical expression in a single regular expression?
Chris Uppal said:You can't. Mathematical expressions make use of nested brackets. Regexps
don't have the power to handle arbitrarily nested constructs.
Chris said:Interestingly,
I was informed some time ago that modern Perl regular
expressions CAN do so... suggesting that perhaps in the name of
correctness, Perl programmers ought to stop calling them "regular
expressions" and start calling them "context-free expressions".
The embedded code constructs (?{code}) and (??{code}),
How to match a mathematical expression in a single regular expression?
Jeffrey Schwab said:
Chris Smith said:Interestingly, I was informed some time ago that modern Perl regular
expressions CAN do so... suggesting that perhaps in the name of
correctness, Perl programmers ought to stop calling them "regular
expressions" and start calling them "context-free expressions".
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.