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.

http://perldoc.perl.org/re.html#%27Debug%27-mode

Another great resource is:

http://search.cpan.org/dist/Regexp-Debugger/lib/Regexp/Debug...



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:

https://regexper.com




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

Search: