Categories
Why does preg_match() return 0?
Hello.
if (preg_match('/^[А-ЯЁ][а-яё]*(\s[А-ЯЁ][а-яё]*)?$/', $_POST['name']) === 1) { $valid = true; }
Answer the question
In order to leave comments, you need to log in
Exactly 0? Not false? You can also look in the direction of Template modifiers , namely "u (PCRE_UTF8)"
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question