Making regex suck less

François Pinard pinard at
Sun Sep 1 17:16:46 EDT 2002

[Henrik Motakef]

> There is an Emacs Lisp package called "symbolic regexps" (or sregexp.el)
> that lets you write regular expressions in standard lisp syntax, like
> (sregexq bol (or "abc" "def")) instead of "^(abc|def)" (bol meaning
> "beginning of line"). I don't see how that maps elegantly to Python syntax,
> however.

PLEX has a Python way to describe regular expressions.  It is likely available
stand-alone.  I found the copy I use within the Pyrex distribution, see:

François Pinard

More information about the Python-list mailing list