Regular Expression in Javascript

/^[A-Z]{6}\d{2}\D\d{2}\D\d{3}\D$/

1. What the hell is that?

Regular Expressions are as usefull as dangerous. If you are a programmer necessarily you will meet them. Over time, you’ll get better at it but they will remain too dangerous!

Sometimes the RegEx (or RE, technical term) may come in handy. But that doesn’t mean that we’ll use it at any time. Understand these and you will level up as programmer. As you undoubtedly realize, RegEx are not exclusive to the hottest language right now: Javascript.

But before figuring out RegEx, we must first understand why we need RegEx …

Continue reading “Regular Expression in Javascript”