Hacker News new | past | comments | ask | show | jobs | submit login

This one is great too: http://regexr.com/

This is my go to when trying to figure out why a regex isn't working how it should.

I like Explain Regular Expressions [0] too.

[0] http://rick.measham.id.au/paste/explain.pl

I've always liked http://perldoc.perl.org/perlre.html , obviously it's perl specific but most of it can be applied to other implementations.

In perl you can use:

    use re 'Debug';
or even better

    use re 'debugcolor';
and watch the state machine matching.

Very useful for debugging.


Another great resource is:


Thanks to those who posted additional resources!

This is also nice to use to visualize regex expressions. It updates the url so you can add it a comment to code:


Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact