Making regex suck less

François Pinard pinard at iro.umontreal.ca
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:

   http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/

-- 
François Pinard   http://www.iro.umontreal.ca/~pinard




More information about the Python-list mailing list