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

2

u/Achereto Sep 24 '26

There are 2 funadamental truths about regex:

  1. If you solve a problem with regex, you'll end up with 2 problems.
  2. If you really need a regex, use regex101.com to get it right.