Thread: [Declined] pattern issue
View Single Post
  #1  
Old 08.04.2019, 12:24
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default pattern issue

I did such a regex, but it does not work for me.
How to find titles only in Russian and many different match unicode. The match must match at least one character in Russian.
It seems to be complicated and confusing.


^([\p{Cyrillic}]+[\-\.\,\!\…\?\(\)\„\”—0-9\s]+[\p{Cyrillic}\-\.\,\!\…\?\(\)\„\”—0-9\s]*|[\-\.\,\…\?\(\)\„\”—0-9]+[\p{Cyrillic}]+[\p{Cyrillic}\-\.\,\!\…\?\(\)\„\”—0-9\s]*)$

Text included:
\p{Cyrillic}
!
?
… (unicode)
— (unicode)
-
.
..
...
,
0-9
(
)
„ (unicode)
„ (unicode)
\s (space)
\
/
\x(200b}
*
Reply With Quote