Utility to locate errors in regular expressions

Christian Gollwitzer auriocus at gmx.de
Fri May 24 14:21:39 EDT 2013


Am 24.05.13 14:58, schrieb Malte Forkel:
> Finding out why a regular expression does not match a given string can
> very tedious. I would like to write a utility that identifies the
> sub-expression causing the non-match.

Try

	http://laurent.riesterer.free.fr/regexp/

it shows the subexpressions which cause the match by coloring the parts. 
Not exacty what you want, but very intuitive and powerful. Beware this 
is Tcl and there might be subtle differences in RE syntax, but largely 
it's the same.

	Christian



More information about the Python-list mailing list