Regular expressions are hard to read and hard to write, JS on the other hand is easy!