Get the latest tech news

Regex Isn't Hard (2023)


bad reputation for being very complex. That’s fair, but I also think that if you focus on a certain core subset of regex, it’s not that hard.

The subset I’ve outlined here is pretty consistent accross the major programming languages of today. However, you might run into some surprises if you’re using old tools like sed and grep that were created around the same time Perl was developing the idea of regex. Too often people entirely reject regex, which is a shame because it’s an incredibly powerful language for text processing.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of regex

regex

Related news:

News photo

Stanford scientists discover new Ozempic alternative with RegEx

News photo

Regular expression functions in Excel