Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For me, the best Regex ressource is still http://regexr.com

It explains what each character does just by hovering over a regex. Best tool to learn or to fine tune your regular expression (with testing included).



I'll add https://regex101.com as an alternative.


This is a paid app, but the debugger on this has been my favorite

https://www.regexbuddy.com/

You can even step through the matching process and see how your matches are made


Love RegexBuddy. That feature along with the "use" tab which generates code for whatever language you select. I don't have to remember the specifics in all the languages I work in. I just select from the dropdowns, for example, "JavaScript (Chrome)" then "Use regex object to get the part of a string matched by a numbered group". Replace the placeholder variable names, and you're good to go!

It will also do things like warn you if you use named groups if your selected language doesn't support them, and the "Use" dropdown won't provide that option.

I really wish it wasn't Windows only.


Hah wow... I've had this app for over a decade and never noticed that feature... right next to the Debug button which I have used numerous times on really gnarly regexes


https://www.debuggex.com/ is a neat one for showing a syntax chart (or railroad chart) visualization.

I generally use https://regex101.com for its display of matched groups (when I'm dealing with complex groups and/or replacement backreferences), and http://regexstorm.net/tester when I specifically need to check a regex that will be running in .NET or Powershell.


I've been using The Regex Coach [0] for years. Simple, free, does the job.

[0] http://www.weitz.de/regex-coach/


For advanced users (and those who want to become regex gurus), the most helpful regex site for me is http://www.rexegg.com/. Also the O'Reilly book "Mastering Regular Expressions" is probably worth gold.


> Also the O'Reilly book "Mastering Regular Expressions" is probably worth gold.

The book is worth it's price if only for chapter 1, definitely seconding this recommendation.


I'll add http://www.ultrapico.com/expresso.htm as another alternative! Writes out the regex steps in English too.


I like https://regexper.com/ as it gives you a visual flow of what's happening.




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

Search: