Hacker News new | ask | show | jobs
by osigurdson 882 days ago
I have no idea how Regex became the standard. The syntax is impossible to remember unless you write regex expressions daily. Most people only rarely need regex so it needs to be relearned every time. It is also incredibly unsatisfying to write (and read).
4 comments

I used it a lot for a few years decades ago, and only use it rarely now. I remember the syntax well and I am not know for having a great memory. I think its terseness suits the extreme focus of its use perfectly.
As much as I hate to hop on the AI bandwagon, this is definitely where tools like Chat GPT shine.

Not to mention, non tech people will now be able to use what once could’ve only been done with cryptic regex.

The only good thing to come out of regular expressions is https://regexcrossword.com/
What would you replace regex with?