Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an online RegexBuddy-like regular expression analyzer? [closed]

Tags:

regex

I'm looking for an online utility that will prettify and add explanatory comments to a regular expression. Does one exist?

like image 407
Andy E Avatar asked Mar 22 '10 11:03

Andy E


People also ask

Is RegexBuddy free?

RegexBuddy - Free download and software reviews - CNET Download.

What does (? I do in regex?

All modes after the minus sign will be turned off. E.g. (? i-sm) turns on case insensitivity, and turns off both single-line mode and multi-line mode. Not all regex flavors support this.

How do you decode a regular expression?

The software of regex analysis decomposes a regular expression in order to find each component (characters, pattern, matches) and describe its meaning. The analysis is based on a cut of the pattern matching expression. Example: /\d{2,5}/ correspond to \d (digit) {2,5} between 2 and 5 times.


2 Answers

I like the online tool: http://regexr.com

When you hover over the regular expression you will get an explanation of that part.

like image 54
Rody Avatar answered Sep 20 '22 08:09

Rody


For what it's worth, I also like:

  • regex101.com, which is quite powerful, but technical. It features timing and steps taken results as well as permalinks for sharing a regex with explanation and test data.
  • regexper.com, which draws railroad diagrams of regexes. The results are very nice to look at and easy to understand, but there are no textual explanations.

Both are free to use.

like image 23
barfuin Avatar answered Sep 23 '22 08:09

barfuin