blako
blako

Reputation: 33

Preg_match with Cyrillic doesn't work

/((?:[a-zA-Z\p{Cyrillic}0-9]+))(#)(\\d+)/is That's what I recently tried but still doesn't work. I have no idea what else to try.

Upvotes: 2

Views: 257

Answers (1)

Toto
Toto

Reputation: 91430

Just add the u modifier (for unicode) at the end of the regex:

/((?:[a-zA-Z\p{Cyrillic}0-9]+))(#)(\\d+)/isu
//                                 here ___^

Upvotes: 3

Related Questions