A
A
andrey69rus2018-06-28 15:26:05
PHP
andrey69rus, 2018-06-28 15:26:05

Why does regexp ignore the letter p?

such a topic that filter input with parameters

FILTER_VALIDATE_REGEXP,'~^[a-za-yayo0-9-]{3,30}\.[a-za-yayo]{2,10}$~'

does not miss the letter p ... although all the others pass, where is the jamb?
solution found
~^[a-zа-яё0-9-]{3,30}\.[a-zа-яё]{2,10}$~u
but
now a similar problem in htaccess settings/([a-za-yayo0-9-.]+)/

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question