I've just uploaded a new version of the regexPlugin.
This plugin allows you to test out regular expressions in a dynamic
environment and see what they match as well as seeing what groups match
what subsections of the matched text. You can also test out the regex
replacement strings and see immediately what the results would be.
The expression editor supports syntax highlighting as well as brace and
bracket matching to simplify editing.
Pattern compilation errors as shown immediately, making it that much
easier to get them correct before putting them into your code.
Other features include the ability to take a java String (off the
clipboard) and extract the regular expression embedded in it, correctly
dealing with all of the double escapes that are required. Likewise you
can copy your expression to the clipboard as a java String, again
dealing with escapes.
The regular expression engine used here is the java.util.regex library
from the 1.4 jdk.
Changes since the last upload:
There is now a library feature, you can name and save your regular
expressions for later reference, as a side effect this also means that
your expressions are persisted across invocations of Idea. You can
export and import your library to move it between machines or share it
You can now run the plugin as a stand alone Java application, just do:
java -jar regexPlugin.jar
and the plugin starts up as a separate application.
The stand alone app shares the same library as the plugin version.
I've also fixed a small number of bugs to do with the syntax highlighter
mis-hilighting embedded comments. As well as an error when extracting
certain expressions from java Strings.
I'll try to get the plugin home page updated with some more up to date
help later today.