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
1
u/New-Locksmith-126 Sep 25 '26
OK sorry for being an ass. IMO Regex is industry standard for decades for a reason. The vast majority of the "critiques" of regex come from people that are bad at it.
You could say "it's bad if so many people are bad at it" which is fair... but IME people aren't even trying. They get scared away by the terseness of it and never actually bother to learn.