The rules are as follows:
The string must contain only Russian and Latin letters, and is limited to a length of 3 to 25 characters.
No numbers or other characters except the indicated ones.
If possible, you need to add more rules that the string may contain characters қ Қ ӯ Ӯ.

I have got such /^[^a-zA-Zа-ЯА-Я]{3,25}$/i but it does not work.

    1 answer 1

     ^[a-zA-Zа-яА-ЯқҚӯӮёЁ]{3,25}$ 

    ^ in square brackets eliminated these characters, on the contrary, the range was also incorrectly set. Symbols were included as usual. Here https://regex101.com/ check passed.

    • Do you know how to include these characters Қ Қ ӯ Ӯ? - Shuhratjon Jumaev 2:28 pm
    • 2
      ё - not included in а-я . - andy.37 2:32 pm
    • Corrected, thanks. - DanielOlivo pm
    • Thanks for the help - Shuhratjon Jumaev