[Python-Dev] New regex syntax? (was: Some questions about
maintenance of the regular expression code.)
Ka-Ping Yee
ping@zesty.ca
Wed, 26 Feb 2003 14:50:31 -0600 (CST)
On Wed, 26 Feb 2003, Brett Cannon wrote:
> Is there enough interest to actually put the time and effort into
> attempting to develop new regex syntax?
I would be excited about this. I've long dreamed of a more
human-friendly way to do regular expressions. Let's see if
there's interest here, and if there is enough, perhaps we can
discuss the details on a separate list (no point in having
more syntax arguments on python-dev until there's a concrete
proposal, i think).
> Ping has a module at http://lfw.org/python/rxb15.py that creates regexes
> patterns using a much more straight-forward syntax by using actual words
> to represent things; there are functions like 'maybe', 'exactly', etc.
> (don't know how powerful it is, though; he just showed it to me briefly
> two weeks ago).
It can do most things that i use regular expressions for.
I used it regularly for a while, but it's somewhat slow.
-- ?!ng