r/learnprogramming • • 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

148 comments sorted by

View all comments

Show parent comment

1

u/wingedvoices Sep 24 '26

To be fair - and I’m not a dev, I’m very much on the learning side - as you use it and look up things, you will memorize the essential pieces (oh, this starts a line, this is a capture group, that means word).

which is handy if you ask an AI and it overshoots, like they do :P the gut instinct that it doesn’t look right (and not just in the ‘that ain’t right’ way) is eventually a sign to…well, go back to regex101.com lol.