It is necessary to divide the string into elements according to the regular expression. The input is a string like
http://(Π²ΠΎΠ·ΠΌΠΎΠΆΠ½Π°Ρ ΠΏΡΠΈΡΡΠ°Π²ΠΊΠ° www)Π½Π°Π·Π²Π°Π½ΠΈΠ΅ ΡΠ°ΠΉΡΠ°.ΡΡ/Π΄Π°ΡΠ° Π² ΡΠΎΡΠΌΠ°ΡΠ΅ Ym/|Π‘Π»ΠΎΠ²ΠΎ ΠΈΠ· Π½Π΅ΡΠΊΠΎΠ»ΡΠΊΠΈΡ
ΡΠΈΠΌΠ²ΠΎΠ»ΠΎΠ²|Π΄Π°ΡΠ° Π² ΡΠΎΡΠΌΠ°ΡΠ΅ Ymd|-|ΡΠ»ΠΎΠ²ΠΎ ΠΈΠ· Π½Π΅ΡΠΊΠΎΠ»ΡΠΊΠΈΡ
ΡΠΈΠΌΠ²ΠΎΠ»ΠΎΠ²|-|ΡΠ»ΡΡΠ°ΠΉΠ½ΠΎΠ΅ ΡΠΈΡΠ»ΠΎ ΠΈΠ· Π½Π΅ΡΠΊΠΎΠ»ΡΠΊΠΈΡ
ΡΠΈΡΡ|.|ΡΠ»ΠΎΠ²ΠΎ ΠΈΡ
Π½Π΅ΡΠΊΠΎΠ»ΡΠΊΠΈΡ
Π±ΡΠΊΠ²|
Ie for example the link type
http://www.site.ru/2013-07/lunniy2013-7-11-rost-don-860686.zip
So that after conversion it was possible to work with an array of type
$arr[0]=http://www.site.ru $arr[1]=Π΄Π°ΡΠ° Π² ΡΠΎΡΠΌΠ°ΡΠ΅ Ym ΠΈ Ρ.Π΄
Please help me create a regular expression, while nothing sensible is working out.