README_regex.md 531 B

regex extensions

With the regex extension you can use any regular expression as a mask. Currently this does only input restriction. There is no further masking visualization.

Example simple email regex:

$(document).ready(function(){
  $(selector).inputmask('Regex', { regex: "[a-zA-Z0-9._%-]+@[a-zA-Z0-9-]+\\.[a-zA-Z]{2,4}" });
});

Example turkish words regex (utf8):

$(document).ready(function(){
  $(selector).inputmask('Regex', { regex: "[a-zA-Z-9şŞıİçÇöÖüÜĞğ\-]+" });
});