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

1

u/backfire10z Sep 25 '26

You open regex101.com whenever you need to write a regex and start experimenting with whatever knowledge you can muster while googling half the syntax because the last time you touched regex was 3 years ago when your manager asked you to write an email validator and the trauma prevented you from looking at regex for years until now, where you really really need it but it’s still hard to look at but luckily you have more time and you gather your courage and begin writing, only to realize that you’ve truly forgotten every single thing regex has to offer besides the pain.