Understanding RegEx in JavaScript

When I first started learning RegEx, I thought it was the most cryptic thing ever and it seemed impossible to learn.  I think we’ve all heard the quote by Jamie Zawinski, “Some people, when confronted with a problem, think ‘I know, I’ll use regular expressions.’ Now they have two problems.”  I mean, what could (\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,6}) possibly mean?

Since then, I’ve learned to love them. Turns out, the above RegEx is pretty common and easy to …

Read Article