Happy is a YACC-like parse generator for Haskell
I'm using happyJS and use the regex underneath for phone validation phone: function (val) { return /^(?:[0-9]+$)/.test(val); } However this …