There is a regular expression of the form
/([а-яA-Z0-9])/ig I need to invert it so that it searches for all characters except data.
This is not how it works:
/(?![а-яA-Z0-9])/ig UPD: In the end result
There is an arbitrary string, it is necessary to check if there are not letters and numbers in the string.
^inside[]how negation works - Grundyvar result = /[^а-яёA-Z0-9]/i.test(s)- Wiktor Stribiżew