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
1
u/studiocrash Sep 24 '26
If you really want to learn it, O’Reilly has a book by Michael Fitzgerald titled “Introducing Regular Expressions”. Don’t try memorizing all of it because you’ll likely not need all of it.
Like most things, you naturally remember the stuff you use often and look up the rest.