share
Stack OverflowIs there anything like RegexBuddy in the open source world?
[+136] [20] Paul Wicks
[2008-09-18 03:23:11]
[ regex open-source regexbuddy ]
[ http://stackoverflow.com/questions/89718/is-there-anything-like-regexbuddy-in-the-open-source-world ] [DELETED]

I've used RegexBuddy several times and found it to be a really useful tool. Is there anything like it in the open source world, preferably something that is platform agnostic? (the fact that regexbuddy is windows only is a real downer)

The only thing I've been able to find is Kodos [1], which I've also used quite a lot, but it doesn't quite have the features of regexbuddy.

(16) This seems like a useful question to me - I had exactly the same question and I'm going to try some of the programs listed below as a consequence of the information provided. NOTE-The question doesn't ask which one is best. It specifically asked what open source alternatives exist. This isn't a question prompting debate - unless there is a question about the legality of the license in certain cases. I don't think this one should be closed. - nullnvoid
Hey I just tried RegexBuddy and wow it is great, there is a official 30 day trial although not in the main site, I'm not paying yet, but as my regex usage requirements increase I will pay for it, no doubt! - Jaime Hablutzel
[+71] [2008-09-18 03:55:08] VonC [ACCEPTED]

QuickRex [1] is an eclipse plugin, and can be used on many java-compliant platform, for many implementations of Regular Expressions in the Java-world:

http://bastian-bergerhoff.com/eclipse/features/web/QuickREx/images/quickREx_small.png

It is also now a standalone application [7] but for windows only for now.

http://bastian-bergerhoff.com/eclipse/features/web/QuickREx/images/quickREx_app_small.png

[1] http://www.easyeclipse.org/site/plugins/quickrex.html
[2] http://java.sun.com
[3] http://jakarta.apache.org/oro/index.html
[4] http://jakarta.apache.org/oro/index.html
[5] http://jregex.sourceforge.net
[6] http://jakarta.apache.org/regexp/index.html
[7] http://bastian-bergerhoff.com/eclipse/features/web/QuickREx/standalone.html

The link to QuickRex is down. Here is another: easyeclipse.org/site/plugins/quickrex.html - Matthias Braun
@mareser Thank you. I have edited the answer and updated the link. - VonC
1
[+19] [2008-09-18 03:46:53] dj_segfault

KDE has a nice one called KRegexpEditor [1] that's pretty helpful.

There's also regexxer [2] if you prefer GTK.

[1] http://linux.about.com/b/2007/04/18/kregexpeditor-fun-with-regular-expressions.htm
[2] http://regexxer.sourceforge.net/

2
[+17] [2008-09-18 03:40:53] William Keller

I suggest taking a look at The Regulator [1], it's probably as close to RB as you're going to get!

[1] http://sourceforge.net/projects/regulator/

This project appears to be old now. Last release was about 2007-09-14. Go fish further. - Nick N
3
[+17] [2009-02-24 17:18:28] csnullptr

According to a colleague of mine RegexBuddy works very well on different platforms using Wine: http://www.winehq.org/.

Unless you want to use only opensource software for philosophical reasons I would really recommend spending the $40 to buy a license--It will pay for itself in time saved.


(7) Regexbuddy is on my list of essentials. - Toby Allen
4
[+16] [2008-09-18 03:29:31] Daniel H

web-based reg-ex evaluator: http://www.rexv.org/

It's not as thorough as RegexBuddy, but it's platform agnostic, free, and works in 90% of the situations in which I want to use RegexBuddy.

(then again, I often just run RegexBuddy in wine if I'm on linux)


5
[+13] [2008-09-26 21:50:43] PhiLho

The Regex Coach [1] is excellent although it is not open source and Windows only, but there is an older version for Linux. Amusing note: it is written in Lisp. The above page also links to a Java version (written actually in Groovy, as it seems) which is open source.

JRegexpTester [2] is written in Java, so portable.

REGex TESTER [3] is yet another Web-based tester, it supports JavaScript RE syntax, of course, but also both PHP syntaxes (Perl style and Posix style).

Also Web based, Regular Expression Test Page [4] to test Java syntax.

I have also a PCRE Workbench, written in Delphi, still for Windows...

[1] http://www.weitz.de/regex-coach/
[2] http://jregexptester.sourceforge.net/
[3] http://www.regextester.com/
[4] http://www.fileformat.info/tool/regex.htm

It is possible to step through a regular expression as it is executed which makes it very useful to find bugs in the regex. - Aftershock
Fast-fw some 5 years. I'm using Regex Coach (I couldn't give this one up) with Wine. No problems whatsoever. - nevvermind
6
[+10] [2008-09-18 03:25:32] Nescio

I commonly use: RegexLib.com [1] the ads can be annoying, but at least it is online so I never have to install anything.

[1] http://regexlib.com/RETester.aspx

(1) This has ads? I have this nifty thing called Adblock Plus installed, sometimes I forget they even exist. :) - David Is Not Here
7
[+9] [2008-09-18 04:51:30] sanity

Not sure if this is exactly what you are looking for, but the most interesting regex tool I've found online in quite a long while is txt2re.com [1]

[1] http://www.txt2re.com/

8
[+7] [2008-09-18 04:05:31] sontek

Your best bet is to use 2 tools from Roy Osherove.. Regulator and Regulazy. Regulator is similar to RegEx Buddy, it allows you to test and validate your regular expressions but Regulazy takes a unique approach of allowing you type in the text you want to match and it generates the regex for you.

You can get both from: http://osherove.com/tools


9
[+7] [2008-09-18 04:48:03] erichui

I've never used RegexBuddy, but if you want a cross platform tool that supports multiple regular expressions language, redet [1] is an excellent candidate to consider. It does depend on having a tcl/tk runtime with the incr widgets library. The lowest friction path is to get ActiveTcl [2], but manually installing the incr Widgets (and incr tcl/tk) from the sourceforge download page [3] is also pretty simple.

[1] http://www.billposer.org/Software/redet.html
[2] http://www.activestate.com/Products/ActiveTcl
[3] http://sourceforge.net/project/showfiles.php?group_id=13244

Redet shares an important feature with RegexBuddy; it allows testing against many different flavors of regex. Redet does this by using the regex-capable tools available on your system. - user287424
10
[+7] [2008-09-18 12:28:13] James

There is RadSoftware's Regex Designer [1], it's very useful and is free but not open source ( no idea why).

[1] http://www.radsoftware.com.au/regexdesigner

11
[+6] [2008-09-18 04:04:16] Steven Oxley

I use an Eclipse plug-in called Regex Tester. You can find information about it here [1]. It has a live evaluation feature, which is really cool because you can see what parts of a sample string will match while you're still typing the regular expression. I find it to be extremely helpful.

[1] http://www.brosinski.com/regex/

12
[+5] [2011-03-30 10:45:54] Stephan

I regularly use Expresso [1]. It can generate source code for your regex. I pretty like the detail tree that break down any regex.

[1] http://www.ultrapico.com/Expresso.htm

(2) How is this part of the open-source world? - Chris Wesseling
(1) May not be open-source but it's very useful! +1 for Expresso. - user1383815
13
[+5] [2011-05-27 17:19:56] Rob Cowie

I'll push Pythex [1] on to this list. A nice, simple web-based regexp evaluator that uses the python re module.

[1] http://pythex.appspot.com/

(1) link not working anymore - xvga
Seems to have disappeared and I can't find the source. Shame. - Rob Cowie
(1) Author here. It's up again. Sorry for the inexcusable downtime! - Chewie
Great! If hosting is an issue perhaps you could make the source available on github or similar? - Rob Cowie
(1) @RobCowie It wasn't so much true hosting issues as indolence on my part... But I'd definitely like to put the source on github as soon as I tidy up the code a bit :-) - Chewie
14
[+5] [2011-07-28 15:50:52] Jeff

I didn't see anyone post this one that I came across recently on SourceForge: Regex Evaluator [1]

Since it's written in Java, it's definitely cross-platform.

[1] http://sourceforge.net/projects/regexevaluator/

15
[+5] [2012-05-22 10:15:33] sdaau

Edit: in addition to the web-based ones below, just found a couple more older ones (via Regular Expression GUI? - perlmonks.org [1] and I mentioned a regular expression coach ... - BrainLog [2]):

Similar SO questions:


Also adding these for online web-based:

[1] http://www.perlmonks.org/?node_id=157925
[2] http://www.dansanderson.com/blog/2004/03/i-mentioned-a-r.html
[3] http://web.archive.org/web/20060430114445/http://www.jall.org/perl/rebug/
[4] http://laurent.riesterer.free.fr/regexp/
[5] http://stackoverflow.com/questions/2348694/how-do-you-debug-a-regex
[6] http://stackoverflow.com/questions/12003802/online-regex-tester
[7] http://stackoverflow.com/questions/32282/regex-testing-tools
[8] http://stackoverflow.com/questions/247312/what-is-the-best-test-as-you-type-online-regex-testing-app?lq=1
[9] http://regex.powertoy.org/Technical.html
[10] http://gskinner.com/blog/archives/2008/03/regexr_free_onl.html
[11] http://www.atomicjetpacks.com/project/regextester/a-javascript-regular-expression-tester

16
[+3] [2011-03-24 11:10:06] DoubleYo

My favorite for PHP regex checker tool : http://regexp.zug.fr/


17
[+3] [2011-09-25 12:23:23] Coder of Salvation

This one is golden as well, more of an interactive one... but definitely handy since it generates cross-language variants: Txt2regex [1]

[1] http://aurelio.net/txt2regex/

18
[+3] [2012-04-09 01:51:02] Roel

One thing this page does not list is what tools are suitable for what regex-aware programming languages or utilities. For example, egrep/sed/perl/php/C etc. may have different regex "curiosities" and as such it would be good if each answer listed what tools and programming languages are supported.

Also adding http://www.weitz.de/regex-coach/ (for Perl compatible regexes)


I think the only tools that support many different flavors of regex are RegexBuddy, Redet, and Txt2regex. - user287424
19
[+2] [2012-10-04 07:45:35] Lindrian

I would suggest http://www.regex101.com/.

It provides an automatic explanation to the regular expression, finds errors in it and shows you what it matches.


This doesnt support lookbehinds that are variable lengths - {0,8}: Lookbehinds need to be zero-width, thus quantifiers are not allowed - ziggy
Yes, that is how PCRE works. JGsofts own engine and .NET support this behavior, which is available in regexbuddy and not on regex101.com. - Lindrian
20