Skip to content


aToaD #13: regex101

Writing regular expressions about always give me a headache… You probably know about the nice regular-expressions.info website, containing a lot of useful information and what seems to be a fairly exhaustive reference.

Yet it misses a useful tool: a way to test your regex. That’s where regex101 (“Regular Expressions 101”) comes in handy. You simply enter your regular expression, pick modifiers (help available for those), then enter some text and see if the regular expression matches it.
Other interesting features:
– quick regex reference in the bottom right corner
– supports regex particularities of 3 languages (PHP, Javascript and Python),
– (very) basic code generator in those languages to use your regular expression
– you can create unit tests
– you can save your stuff either via unique URL or by using a Github or Google (yuck) account. I haven’t tested this, though.

In a somewhat related area, Code Beautify will help you reformat your code in a nicer way. Works with quite a few popular languages (JSON, XML, JavaScript, and many more)

Posted in A Tool A Day.


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.

Sorry about the CAPTCHA that requires JS. If you really don't want to enable JS and still want to comment, you can send me your comment via e-mail and I'll post it for you.

Please solve the CAPTCHA below in order to fight spamWordPress CAPTCHA