I wonder what techniques people use for debugging regexes.
Some tools I thought would be useful
1. proofreader to help get \ quoting right.
http://mindprod.com/project/regexproofreader.html
2. composer http://mindprod.com/project/regexcomposer.html
3. some sort of tool when you don't get a match to give you the index
of the rightmost char that DID match.
4. a framework when you give your patterns and test strings and it
tells you which match and which don't. Perhaps it could prune
strings/patterns to find the best match.

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Roedy Green - 30 May 2008 02:38 GMT
On Fri, 30 May 2008 01:19:57 GMT, Roedy Green
<see_website@mindprod.com.invalid> wrote, quoted or indirectly quoted
someone who said :
>4. a framework when you give your patterns and test strings and it
>tells you which match and which don't. Perhaps it could prune
>strings/patterns to find the best match.
see http://mindprod.com/project/regexdebugger.html

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
voorth - 30 May 2008 13:08 GMT
On May 30, 3:38 am, Roedy Green <see_webs...@mindprod.com.invalid>
wrote:
> On Fri, 30 May 2008 01:19:57 GMT, Roedy Green
> <see_webs...@mindprod.com.invalid> wrote, quoted or indirectly quoted
[quoted text clipped - 9 lines]
> Roedy Green Canadian Mind Products
> The Java Glossaryhttp://mindprod.com
I was pleasantly surprised by this Eclipse plugin:
http://brosinski.com/regex/
Does anyone know of comparable plugins for other IDE's ?
--Henk
Lord Zoltar - 30 May 2008 15:09 GMT
On May 29, 9:19 pm, Roedy Green <see_webs...@mindprod.com.invalid>
wrote:
> I wonder what techniques people use for debugging regexes.
>
[quoted text clipped - 15 lines]
> Roedy Green Canadian Mind Products
> The Java Glossaryhttp://mindprod.com
Personally, I prefer Expresso: http://www.ultrapico.com/Expresso.htm
It's a Windows-only app though. I do remember that KDE also shipped
with a regex tool, of similar capabilities. I don't know what's out
there for OS X, but I'm sure there's something out there.
A. W. Dunstan - 02 Jun 2008 16:32 GMT
> Personally, I prefer Expresso: http://www.ultrapico.com/Expresso.htm
> It's a Windows-only app though. I do remember that KDE also shipped
> with a regex tool, of similar capabilities. I don't know what's out
> there for OS X, but I'm sure there's something out there.
kregexpeditor - part of the kdeutils package.

Signature
Al Dunstan, Software Engineer
OptiMetrics, Inc.
3115 Professional Drive
Ann Arbor, MI 48104-5131
GK - 30 May 2008 18:33 GMT
Try this one: http://www.bastian-bergerhoff.com/eclipse/features/web/QuickREx/toc.html