Tag: regex

Regular expressions blues

Or why I hate regular expressions, they’re not designed for readability

Early this morning I caught up on a recent changelog covering Happy.js, a lightweight form validation plugin. My first reaction, nifty. I can use a handy form validator for web app inputs. As I was skimming through the example validation functions the REGEX reached out the page and slapped me in the face. It was only then that I realized how unintuitive regular expressions are.

(more…)