Friday, November 9, 2007

Java Regexp tester

I wrote a little Swing app to test Java regular expressions. You can run it if you have Java installed with webstart or you can download the jar and run it with

java -jar regexp.jar

The source code is included in the jar, but don't copy my Swing code, I don't know what I'm doing there.

screenshot of regexp tester

I wrote it to demo and test regular expressions in Java. You can use it to follow this tutorial on the Sun website. The tutorial supplies a Java app to test regular expressions typed into sysinput, but I thought I would add the graphical element to make it easier.

No comments: