In article 
<[EMAIL PROTECTED]>,
 Jonathan Gardner <[EMAIL PROTECTED]> wrote:

> On Jun 27, 10:32 am, "David C. Ullrich" <[EMAIL PROTECTED]> wrote:
> > (ii) The regexes in languages like Python and Perl include
> > features that are not part of the formal CS notion of
> > "regular expression". Do they include something that
> > does allow parsing nested delimiters properly?
> >
> 
> In perl, there are some pretty wild extensions to the regex syntax,
> features that make it much more than a regular expression engine.
> 
> Yes, it is possible to match parentheses and other nested structures
> (such as HTML), and the regex to do so isn't incredibly difficult.
> Note that Python doesn't support this extension.

Huh. My evidently misinformed impression was that the regexes
in P and P were essentially equivalent. (I hope nobody takes
that as a complaint...)

> See http://www.perl.com/pub/a/2003/08/21/perlcookbook.html

-- 
David C. Ullrich
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to