Chris Uppal <> wrote:
> You can't. Mathematical expressions make use of nested brackets. Regexps
> don't have the power to handle arbitrarily nested constructs.
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". Java,
though, does not include the Perl madness that makes this possible. To
quote from the API docs:
Perl constructs not supported by this class:
[...]
The embedded code constructs (?{code}) and (??{code}),
--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation