preg_match help with regular expression
-
The rules are:
The line shall contain only Russian and Latin letters and shall be limited to 3 to 25 symbols.
No chips or other symbols except the signs.
If this is possible to add the rules that the row may contain the symbols q K ы ы.I've had this kind of thing.
/^[^a-zA-Zа-ЯА-Я]{3,25}$/i
but it doesn't work.
-
^[a-zA-Zа-яА-ЯқҚӯӮёЁ]{3,25}$
^ In square brackets, these symbols were removed vice versa, as was the wrong range. Symbols were included as usual. Here. https://regex101.com/ The check's gone.