4

On the Mac I use at work, RegexRX is installed. Unfortunately, It only runs on OS X and I'm looking for a GNU/Linux alternative, preferably a FLOSS one.

The key functionality that I require is:

  1. Given a regex, show what text does/doesn't match the pattern
  2. Provide a way to export the pattern as a search pattern in a number of languages (mainly PHP and Python).

I've already looked at alternativeto.net and tried Regexp Testing Tool to no effect.

4

I've found RegExr very easy to use; it's an online tool that lets you build a regular expression as well as how it matches a sample text.

RegExr screenshot

Pros:

  • Edit regex and see matches live
  • Online (runs anywhere with a browser)
  • FLOSS (MIT license)
  • Explains the meaning of various characters in the expression when cursor hovers over them
  • Includes a cheat sheet and reference for the occasion when you forget exactly what something does

Cons:

  • Export expression/pattern available but not specifically for Python/PHP (although I'm not sure how much that matters, given how trivial it is to write code once the pattern is given)
| improve this answer | |
  • Thanks. I'll put it through its paces and see what I can see. If I get the results I want, I'll accept your answer. – Agi Hammerthief Nov 4 '14 at 9:41
0

I personally use the Google Chrome Regular Expression Checker tool from the Chrome Extensions.

It is free and a compliant regexp will work in both PHP and python by simple copy and paste.

enter image description here

| improve this answer | |
  • 2
    Thanks for the suggestion, but I can't seem to find it in Chrome's Web store. Could you please provide a link? – Agi Hammerthief Nov 3 '14 at 11:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.