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.
Or read this on Hacker News