I don’t always write Regular Expressions, but when I do, I feel like I’m learning it all over again. I’m looking for methods to retain the important parts, and put some method to the madness.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should use the exact same trick that’s used for remembering any API: use an accurate reference.
For example, when I need to work with Regular Expressions in JavaScript, I use the reference on MDN. If I need regex in PHP, I’ll use the php.net reference. If I need regex in .NET, I’ll use the MSDN reference.
It’s better to not remember and look it up each time than it is to remember incorrectly and write it wrong.