I have a such js regex:
/^[a-zA-ZęóąśłżźćńĘÓĄŚŁŻŹĆŃ]+$/
and now I would like to exclude from a-zA-Z letters like QVXqvx. How the syntax of this regex should be changed?
I tried but no luck. Please help me.
Thanks in advance
Definition and Usage. The ?! n quantifier matches any string that is not followed by a specific string n. Tip: Use the ?= n quantifier to match any string that IS followed by a specific string n.
- a "dot" indicates any character. * - means "0 or more instances of the preceding regex token"
\s stands for “whitespace character”. Again, which characters this actually includes, depends on the regex flavor. In all flavors discussed in this tutorial, it includes [ \t\r\n\f]. That is: \s matches a space, a tab, a carriage return, a line feed, or a form feed.
You can still do ranges, but you'll have to do ranges that exclude those letters, so something like A-PR-UWYZ
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With