12 Resources For Mastering Regular Expressions

Any development project, whatever language is being used, usually requires extracting values from a given data and validating it.

This can be input validation, filtering URL variables, etc. Regular expressions handle such tasks easily and help a lot when it comes to minimizing the code.

On the other hand, regular expressions are considered as “hard to learn”. But, “not at all”, they just look complicated but they definitely are not.

Here are 12 great resources for learning and mastering regular expressions.

I had started with no:1 (RegExplained) and suggest that you do so too. Watch the talk of Lea Verou and you’ll already be knowing it. After that, use others to improve your skills.

RegExplained

RegExplained

RegExplained is the project that thought me regex. It is a simple playground which highlights the matched text from a regex in real-time.

It is a project of Lea Verou and also supported with a talk (I suggest you watch it to start learning regular expressions quickly).

RegEx Guide By Mozilla

Mozilla Regex Guide

One of the most simplified regular expression guides on the net. Easy to understand and covers the most important stuff.

You may want to check what Microsoft docs tell too.

RegexPlanet

RegexPlanet

RegexPlanet allows testing expressions using any of the multiple languages. The expressions created can be shared and, a cookbook features handy regular expressions.

Debuggex

Debuggex

A web app for testing regular expressions. It has support for JavaScript, Python an PCRE.

Rubular

Rubular - Ruby Regex Tool

A popular regex editor for Ruby which inspired many other projects.

Scriptular

Scriptular

Regex tester for JavaScript (inspired from Rubular). It also has a quick reference of regular expression commands.

txt2re

txt2r Regex Tester

A tool that helps extracting any given text visually by clicking on items in a  filtered text.

PHP Live Regex

PHP Live Regex

A regular expression tester for PHP developers. The tool can also generate unique URLs so that you can share the code with others or keep working on later.

Rex V

Rex V

A real-time regex tester with support for PHP, JavaScript, Python, Nodejs and Perl.

XRegExp

XRegExp

A JavaScript library for extending the capabilities of regular expressions. It provides new syntax, flags and methods.

VerbalExpressions

VerbalExpressions

A very exciting project that can change how developers use regex (like jQuery did for JavaScript).

It aims to make the regular expressions easy to read and write with commands like: .startOfLine() .then( "http" ) .maybe( "s" ) .then( "://" ) .maybe( "www." ). Simple, huh?

Regex Crossword

Regex Crosswork

A one-of-a-kind resource for improving your regex skills. It is similar to the classic puzzles where you are given a regular expression to guess the right letter for the field.

 

Search