Recommendation for Regex editor?

I asked for recommendations for Regex editors on stackoverflow a while ago. Following is one of the replies:

What is "good" depends on what is most useful to you. For me, though, these are the key features for a good regex editor (besides the ability to test and create regular expressions, of course, which is a prerequisite to be called a "regex editor" :-) :

  1. Displays matches hierarchically with captured groups.
  2. Explains/analyzes an entered regex in plain English, showing a hierarchical tree.
  3. Translates your regex into code for a language of your choice.

RegexBuddy, as @Max mentioned, does all these but there is also a free alternative, Expresso that also does them very well. These two utilities are the only ones I have found with the crucial ability to explain a regex.

The features sound very attractive to me. But later I found the two are for Windows. I tried to install Expresso, the free one, via Wine, but met some trouble, about which I asked in another post.

  1. So I was wondering if in Ubuntu there are some applications comparable to RegexBuddy and Expresso?
  2. If it is required to install .NET Framework in order to install Expresso, is it still worth to install Expresso on Ubuntu?

Thanks and regards!


Solution 1:

By far, the best tool for the job is RegExr.

The link above will take you to the online version, which is awesome and definitely the best RegEx tool I've ever used.

If you're looking for something you can install in Ubuntu, then try the desktop version, which is an Adobe Air application:

enter image description here

Solution 2:

Kodos is an application to aid in the creation and debugging of regular expressions in python. The GUI for Kodos should eliminate the need for using the python interpreter for regex design in most instances.

Homepage: http://kodos.sourceforge.net/

Or online tool: http://www.regextester.com/

Solution 3:

visual-regexp still works, and is in the Ubuntu repository. Unfortunately, the name does not start with "regex", so later on you will think, "Oh yeah, what was that regex editor I installed, type "reg", get nothing, go doing a websearch, and ending up here all over again. Also, (because it's Tk-based?), pasting from your paste buffer into the pattern window doesn't seem to work as expected.

Kodos was a wonderful tool, but unfortunately, neither RegExr nor Kodos runs (without great effort) on Ubuntu 12.10+; Kodos has not been upgraded to QT4, and Adobe Air no longer supports Linux.

Solution 4:

I've found refiddle.com: it has most features that you would need from a regex editor, and as a bonus you can share your regex with others, or bookmark them.

ex: http://refiddle.com/refiddles/red-green-corpus-test

It's a web application similar to RegExr, built without flash and you can switch between JavaScript, .net and ruby regex processors. Also the corpus-test feature (that I just discovered while posting this) is not bad.

Solution 5:

I like the website rubular.com its free and you don't have to install anything to use it.

enter image description here

It uses Ruby as underlying framework for regex testing.