I have a company name field in my app. The company might be Russian or from any other country.
If the company is Russian I need to restrict user input so that he can type any chars except latin letters.
If the company is not Russian then I need to restrict user input so that he can type any chars except Russian.
So I actually have such regexps:
latinChars: /^[a-zA-Z][a-zA-Z\s-]*$/
cyrillicChars: /^[а-яА-Яё][а-яА-Яё\s-]*$/
But I cannot figure out how to exclude characters. Like, I tried using (?!...)
operator without success.