Recommendation for Regex editor?
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:
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
kiki https://launchpad.net/ubuntu/bionic/+package/kiki
fine GUI and awesome features.
Related videos on Youtube
Tim
Elitists are oppressive, anti-intellectual, ultra-conservative, and cancerous to the society, environment, and humanity. Please help make Stack Exchange a better place. Expose elite supremacy, elitist brutality, and moderation injustice to https://stackoverflow.com/contact (complicit community managers), in comments, to meta, outside Stack Exchange, and by legal actions. Push back and don't let them normalize their behaviors. Changes always happen from the bottom up. Thank you very much! Just a curious self learner. Almost always upvote replies. Thanks for enlightenment! Meanwhile, Corruption and abuses have been rampantly coming from elitists. Supportive comments have been removed and attacks are kept to control the direction of discourse. Outright vicious comments have been removed only to conceal atrocities. Systematic discrimination has been made into policies. Countless users have been harassed, persecuted, and suffocated. Q&A sites are for everyone to learn and grow, not for elitists to indulge abusive oppression, and cover up for each other. https://softwareengineering.stackexchange.com/posts/419086/revisions https://math.meta.stackexchange.com/q/32539/ (https://i.stack.imgur.com/4knYh.png) and https://math.meta.stackexchange.com/q/32548/ (https://i.stack.imgur.com/9gaZ2.png) https://meta.stackexchange.com/posts/353417/timeline (The moderators defended continuous harassment comments showing no reading and understanding of my post) https://cs.stackexchange.com/posts/125651/timeline (a PLT academic had trouble with the books I am reading and disparaged my self learning posts, and a moderator with long abusive history added more insults.) https://stackoverflow.com/posts/61679659/revisions (homework libels) Much more that have happened.
Updated on September 17, 2022Comments
-
Tim over 1 year
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" :-) :
- Displays matches hierarchically with captured groups.
- Explains/analyzes an entered regex in plain English, showing a hierarchical tree.
- 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.
- So I was wondering if in Ubuntu there are some applications comparable to RegexBuddy and Expresso?
- 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!
-
Thomas Ward about 13 yearsI dont think we're looking for Windows programs, @Wojciech.
-
Tim about 13 yearsThanks! (1) Does Regex desktop version require connection to the Internet? (2) What types of Regex does it support, basic one, Python, Perl, awk, sed, ...?
-
Tim about 13 years@EvilPhoneix: Is Kodos Windows or Ubuntu program? I heard it can be used on ubuntu.
-
Nathan Osman about 13 years@Tim: (1) No. (2) I think it uses AS3's internal RegEx library. That being said, I've found that it is pretty close to PCRE.
-
Lincity about 13 yearsit has an .rpm which can be converted into .deb using alien.
-
Brutus over 11 yearsI installed Kodos in previous Ubuntu versions trough
aptitude
, but it seems to be dropped from 12.10. If I download the source and usesetup.py
I get some dependency errors about pyqt and the manual install bails too. Any chance that there is are workingdeb
somewhere? -
Bas Peeters over 9 yearsThe link in your answer to the desktop version redirects to regexr.com. Instructions to install RegExr are located on github.com/gskinner/regexr.