Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 531 Bytes

README_regex.md

File metadata and controls

17 lines (14 loc) · 531 Bytes

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şŞıİçÇöÖüÜĞğ\-]+" });
});