Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2008

Tip: Looking for answers? Try searching our database.

debugging regexes

Thread view: 
Roedy Green - 30 May 2008 02:19 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.