igorescobar / jQuery-Mask-Plugin

A jQuery Plugin to make masks on form fields and HTML elements.
http://igorescobar.github.io/jQuery-Mask-Plugin/
Other
4.77k stars 1.42k forks source link

getRegex feature (analogic cleanVal method) #687

Closed ravciok closed 5 years ago

ravciok commented 6 years ago

I need opportunity to get regex val after transform from mask. Is any chance to add this i pr?

// get value without mask
jMask.getRegex = function() {
    return p.getRegexMask();
};

$.fn.getRegex = function() {
    return this.data('mask').getRegex();
};