RobinHerbots / Inputmask

Input Mask plugin
https://robinherbots.github.io/Inputmask/
MIT License
6.36k stars 2.18k forks source link

Allow Aplhanumeric, space, dot and line #2782

Closed SiKth closed 3 months ago

SiKth commented 3 months ago

Hi, I use this setup: <input type="text" data-inputmask-mask="[*]" data-inputmask-greedy="true" data-inputmask-placeholder="_" data-inputmask-repeat="8">

How do I allow all letters, numbers and space and - and . ? Right now I only have the * for alphanumeric.

Thanks!

Techn1c4l commented 3 months ago

Use regex option instead of mask like this: <input type="text" data-inputmask-regex="[A-Za-z0-9\-\.\?]" data-inputmask-greedy="true" data-inputmask-placeholder="_" data-inputmask-repeat="8">

SiKth commented 3 months ago

Works great, thanks!