Answer the question
In order to leave comments, you need to log in
Why does an error appear in the regular expression when there is a space?
Hello! Literally for no reason, without changing anything in the code, the regular expression stopped working . It gives
the following error:
E_WARNING : type 2 -- preg_match(): Compilation failed: range out of order in character class at offset 19
preg_match("/^[A-zА-яёЁ0-9_-\s]{3,50}$/iu", 'Морковь');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question