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

Special Characters in the pattern? #775

Closed samyouel closed 1 year ago

samyouel commented 3 years ago

Hey.

Is there a way to trigger a pattern, that allows all characters recursively, also special characters? 'R': {pattern: /[a-zA-Z0-9]/, recursive: true},

got this now. but this doesn't allow special characters. is there a way to do that?

thanks!

I basically want to achieve the input of a social page link, that starts per definition with https://somesocialmedianetwork.com/ and then finishes with as many characters recursively as the user wants, i.e. their profile

nachotisnes commented 2 years ago

Have you tried /./ as your pattern?