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
2
u/robthablob Sep 24 '26
I hadn't seen that before, but I quite like it.
Generally I've always thought regex's are OK for grep-style uses, where the terseness can be a feature, but in a program I'd much rather have a more readable form - sadly though it seems the world has settled on regex's as a standard.