How to memorize regex

I’ve only completed 7 lessons, but it’s already getting a bit hard to memorize all those things in regex expressions. How would i do this?

Hi @chetanzeogu410 !

To answer your question, how do you memorize regex?

Simple answer, you don’t.

It is a complete waste of time.

I have never been in a situation on the job where a manager or tech lead has forced me to memorize regex or quiz me on regex. Heck, most people I have worked with aren’t regex wizards.

Regex is just a tool.

Remember the job is about problem solving. Not memorization.

Start with the problem at hand and then if it makes sense to use regex then look up what you need on sites like MDN or regex101. Or just google around for help.

With enough practice there will be some things that you will remember and won’t need to look up each time. But then there will be other things that you just need to look up.

Don’t worry about memorizing. Just make sure you have a basic understanding of what is taught and continue to build projects.

Hope that helps

2 Likes

Thanks for the response, will do!