Y
Y
ywitodenasuby2018-06-07 15:36:12
Regular Expressions
ywitodenasuby, 2018-06-07 15:36:12

Why doesn't preg_match match this pattern?

Some mystic...

echo preg_match("/^\/[\p{L}0-9\\s]+$/", "/стрекоза");

0

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nick SDK, 2018-06-07
@ywitodenasuby

why should it find something? regex
string ^ - start of string \/ - slash ... and then what? in that character set of yours there is not enough later , and so on .../стрекоза
write
or else like this
with a modifieru - unicode

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question