chrislynch.link

I Hate Regular Expressions, but I Love These Regular Expression Tools

photo of person deriving formula on white board

I hate Regular Expressions, AKA “RegEx”. I probably just don’t use them enough to ever get comfortable with them. They are the sort of thing that I should like; they are suitably arcane and inscrutable, just like my favourite long Linux command line hacks that I keep memorized, but somehow RegEx and I have never “clicked”.

This doesn’t mean that I don’t use RegEx. I just don’t enjoy it and, usually, I cheat by hitting up Stackoverflow in the hope of finding someone who has already created the RegEx pattern that I need. When that fails, I have a couple of tools that I turn to…

https://ihateregex.io/: A super useful list of common RegEx patterns and a cheatsheet for building your own.

https://regexr.com/: An interactive development environment for creating Regular Expressions.