ask for a RE pattern to match TABLE in html

Jonathan Gardner jgardner at
Mon Jun 30 22:21:54 CEST 2008

On Jun 27, 10:32 am, "David C. Ullrich" <dullr... at> 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.


More information about the Python-list mailing list