[lug] REGEX DEVELOPMENT TOOL

Davide Del Vento davide.del.vento at gmail.com
Tue May 14 17:34:29 MDT 2013


On Tue, May 14, 2013 at 1:27 PM, Quentin Hartman <qhartman at gmail.com> wrote:

> Python has a good PCRE lib


I second this. And it also has great documentation, both off and online.
See for example: http://docs.python.org/2/howto/regex.html and
http://docs.python.org/2/library/re.html (and note that I am one of the few
people who think Python documentation in general should be improved,
because is not as good as e.g. java's).

One *extremely* useful feature of Python's regex is re.VERBOSE (see
http://docs.python.org/2/howto/regex.html#using-re-verbose for details).
While writing it might not seem a big deal, but when reading a regex you
wrote the day before (not to mention the month or year before) it's
priceless. I refuse to write something (besides the absolutely trivial)
without using re.VERBOSE.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20130514/94fbcac1/attachment.html>


More information about the LUG mailing list