Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #45907

Re: Utility to locate errors in regular expressions

From Christian Gollwitzer <auriocus@gmx.de>
Newsgroups comp.lang.python
Subject Re: Utility to locate errors in regular expressions
Date 2013-05-24 20:21 +0200
Organization A noiseless patient Spider
Message-ID <knoaru$4lr$1@dont-email.me> (permalink)
References <mailman.2062.1369400329.3114.python-list@python.org>

Show all headers | View raw


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

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Utility to locate errors in regular expressions Malte Forkel <malte.forkel@berlin.de> - 2013-05-24 14:58 +0200
  Re: Utility to locate errors in regular expressions Roy Smith <roy@panix.com> - 2013-05-24 09:12 -0400
    Re: Utility to locate errors in regular expressions Neil Cerutti <neilc@norwich.edu> - 2013-05-24 13:58 +0000
  Re: Utility to locate errors in regular expressions rusi <rustompmody@gmail.com> - 2013-05-24 07:09 -0700
  Re: Utility to locate errors in regular expressions Christian Gollwitzer <auriocus@gmx.de> - 2013-05-24 20:21 +0200

csiph-web