RegExp Tool
My favorite text editor of all time is ActiveState Komodo. I used to use the full/pro version of this but since I was too lazy to buy it so I kept redownloading the trial version every month. A while back ActiveState released a free version of the editor called Komodo Edit.
Komodo Edit has almost all the features I use. Almost. One feature that I missed pretty soon after changing was the RegExp editor. It is a pretty simple tool that allows you to type in a regular expression, some sample text and it would show you the groups etc. So, I decided I would just reimplement this in DHTML (no AJAX here).
The implementation is pretty simple. It uses input/propertychange events to track changes to the text areas and then applies the regular expression to the test text and displays the result in a tree. For the tree I used xTree2b which has been in beta for a few years now…
Updated: I added labels to the textfields and the result area.
July 23rd, 2007 at 5:47
You may also want to check out: http://osteele.com/tools/rework/
This got me through some hard times
July 23rd, 2007 at 7:30
Looks great. Do you have any issues with my integrating this into our Aptana IDE? If so, please contact me at paul at aptana dot com.
July 24th, 2007 at 23:08
Reguläre Ausdrücke online testen…
Von Erik Arvidsson stammt das Regular Expression Tool. Nach Eingabe eines regulären Ausdrucks samt evtl. notwendigen Modifiern, sowie des zu testenden Textes, werden die Matches in einer Baumansicht übersichtlich angezeigt. Dank DHTML fu…
July 27th, 2007 at 16:43
Nice tool, but some form labels wouldn’t hurt. Took me a few trys and a crash in order to figure out that I was entering the regex in the wrong field.
August 6th, 2007 at 18:50
[...] Komodo’s RegExp Tool, and since he does not own an original copy of it, he decided to create his own Regular Expression Tool. Please take a look, spend some time and you’ll see how useful it [...]
August 13th, 2007 at 17:19
Regular Expression: [^L]*
Sample Text: Lonnie is here
Result should be: onnie is here
Result is: [nothing]
August 13th, 2007 at 17:52
Also, the expression and sample (mentioned previously) also generates an endless loop when all options are checked.
I like what your trying to do. JavaScript currently provides an incomplete regular expression engine. It doesn’t support ?
August 13th, 2007 at 18:23
Your validation cut off my message. It apparently won’t allow (?
August 13th, 2007 at 18:29
Instead off deleting stuff in brackets you should convert brackets to their html code.
Here’s the remainder of my message (hand encoded):
?<= positive look-behind or ?<! negative look-behind. I hope those features are soon supported though.
Another tool:
http://www.ultrapico.com/Expresso.htm
August 13th, 2007 at 18:32
It was the left brackets above that prevented my message from posting earlier.
September 18th, 2007 at 9:32
Dosen’t work in IE6
April 19th, 2008 at 5:20
Very cool, saved me some time figuring my little problem out.