V
V
Vlad2020-04-17 15:48:53
PHP
Vlad, 2020-04-17 15:48:53

Why doesn't preg_match work?

If I write PHP code,

if (!preg_match('/\/ettevote\/filter\/abc\/([A-Za-z0-9-&ŠšŽžÕõÄäÖöÜü])/', $_SERVER['REQUEST_URI'], $code)) {
    die('Not found!');
}

and open the link /et/ettevote/filter/abc/ü , it gives NOT FOUND.

It is the letter ü that does not work, but az works with any letter of ordinary Latin.
How to fix?

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