I am wanting to check if an input field has the attribute \"pattern\" and if so, preform a regex check aganst said pattern.I know this is already done by HTML5, but I am wan
Normally regular expression with javascript / jquery handle like
var reg = /pattern/; if (reg.test($(this).val())) { // perform some task }