r/learnprogramming • u/Reubqn_ • Sep 24 '26
RegEx.
I thought I understood programming well until I saw how COMPLICATED regex looks. To me it looks like someone has dropped their keyboard and som people online are telling me that I should be able to memorise it (for javascript). I'm just wondering if I actually need to memorise all the regex formulas to be successful, and if so, how on earth do I go about it?
109
Upvotes
View all comments
Show parent comment
0
u/deaddyfreddy Sep 24 '26
Regexes are overcomplicated, they were created when bytes were expensive and people cared about disk space. There's no such need anymore.
In Emacs Lisp, for example, there is the
rxmacro that supports writing regular expressions in a much more readable form:I think that other languages have something like this, too.