Main Content
Lea Verou's Talks
-
/Reg(exp){2}lained/: Demystifying Regular Expressions
June 14, 2012 6:20 AMQuick, what does this do: /(\/*?\/)|\/\/.*?(\r?\n|$)/g? If you’re like many developers, you just averted your eyes, and your heart is now in your throat. Symptoms included sweaty palms and recurring nightmares with blood-thirsty ASCII symbols. But don’t worry, this condition doesn’t have to …