Today’s lesson was about regular expressions. I do have to admit that regular expressions are definitely one of my weaknesses. Every time I think “Yes, now I got it!” and run a test against my pattern, it fails. It’s definitely something I need to learn deeply in the future. But for now, I’m happy I finalised lessons of the third day, which can be found on https://github.com/nielslange/30-days-of-node-js/tree/master/Day%2003%20-%20Regular%20expressions.
Update: Just stumbled upon https://github.com/chriso/validator.js and while I still think it’s value to learn regular expressions, I also believe I should not reinvent the wheel, but trust in the power of Open Source instead.