Copyright (c) 2000-2001 Laurent Riesterer
Latest version 2.2
ABOUT
VisualREGEXP helps you to design, debug or more generally work with regular expression. As it is often difficult to write the right regexp at the first try, this tool will show you the effect of your regexp on a sample you can choose.
REQUIREMENTS
This program requires Tcl/Tk 8.3.0 or later.
HOW TO USE
Launching the program
On Unix, use 'chmod +x ...' to make the program executable. You can then
integrate it with your Window Manager or put it into an executable path.
On Windows, create a shortcut and invoke the script with 'wish.exe'
Design of regexps
To design regexp, just type the expression in the top text widget. Press the 'Go' button to highlight the matched part of the text in the sample text widget.
To get a quickref of the regexp syntax use the menu 'View/Show regexp help'.
You can specify some options using the checkboxes (please read Tcl help to learn the meaning of these options).
Recursive design of regexps
Sometimes you will need more than one step to extract the information you want from the sample. For example, imagine you want to retrieve information from an HTML table inside an another HTML table : '
| ||||
Foo | Bar |
You cannot use one global regexp to extract the two lines "One 1" and "Two 2". You have to use a first regexp to narrow the processed region. Type the following regexp '
(.*?) | .*?(.*?) | ' to get the information you need.