The Regex Assistant
A visual programming tool for the Perl Regexes
Description
The purpose of the Regex Assistant is to help you to write regular
expressions. With it you can edit a regex and visualize its behavior.
The Regex Assistant offers the possibility to visualise a regular
expression by using the Léon Brocard's GraphViz::Regex.pm module. The
graph is rendered with the WinGraphviz COM object which can be downloaded
from
The GraphViz home page
Consider the present version as a prototype. If you have any remark or
you want to contribute to the development don't hesitate to send me a mail.
Installation
We need to have IE5, ActiveState Perl and Perlscript installed
on your machine.
- Unzip the RegexAssistant.zip in a directory of your choice
- Launch by double-clicking on the file regex_assistant.hta.
- Now play with it!
Quick start
- With the step by step execution try the following regex:
.*.+.+.+
- Check the Step by step mode.
- And, for example click on the "Continue" button.
Other interesting regexes to test could be:
regex | string |
---|
\b
|
abcd |
(?=\W)
|
abc#def |
Todo
So many things to do... but you can participate.
Major Bugs
- highlighting of a regex isn't always possible due to a PerlScript bug.
- call to an undefined sub in an inserted Perl expression can produced a fatal error. Don't write
something like (?{ l $n })
Philippe Verdret pverdret@caramail.com
Last modified: Thu Feb 06 14:08:24 Paris, Madrid 2003