Is there a good, online, interactive regex tutorial? [closed]

Shameless plug: I wrote an interactive Regular Expression tutorial (RegexOne) over a couple weekends to help some friends learn regular expressions. They mentioned the real time examples seemed to help quite a bit too.


The site written by @wchung, RegexOne seems to be a perfect answer to the original question. Check that out first ;)

The tool txt2re is, as commenters have rightly mentioned, very ugly. RegExr (ht @runrunraygun) is a much prettier tool for editing regular expressions, although has completely different functionality and still no tutorial.

The main reason it might be useful for learning regexes is the ability to see the effect each edit is having on the matching.

Original answer:

I always thought txt2re was a very clever tool. You just type an example of some text you want to match, and then it lets you pick bits out to match against. I'd consider it to be a fairly useful tool for learning regular expressions.


It's not really interactive, but still a good tutorial: www.regular-expressions.info. You could try combining that tutorial with one of the online RegEx tools to try out the examples (for a little interactivity :-)


It's not online, however, you might enjoy the game RegexExpress (warning: one of the award pictures is nsfw). It's a game made during a PyWeek contest that teaches you to use regex on a curses type interface. I found it quite fun.