i have a regular text that have a 4 part.
see right to left version for see
http://pastehtml.com/view/1bsn7yh.html
i want to seperate each line to
- arabic letters
- phonetic part
- parentheses part
- any thing to end of line
<?php
$a = "
آبري ābri΄ ( ا . مر . نر ) 1ـ آبرو، حيثيت 2- كنايه از بكارت
آبري ببرديون ābri΄ beberdiyún ( مص . مر ) آبروي كسي را بردن ، كسي را رسوا كردن
آبري بريتيون ābri΄ beritiyún ( مص . مر ) آ بروي كسي را ريختن، كسي را رسوا كردن
آبري بشيون ābri΄bešiyún ( مص. مر ) آبرو رفتن ، رسوا شدن
آبري دار ābridā΄r ( ص. فا، خم ) آبرودار، با آبرو
آبري داري ābridāri΄ ( حا. مص ) آبروداري، با آبرويي
";
/* i want to tripe part each line
- first arabic word
- second phonetic part
- third the paranteces part
- forth anything to end of line
*/
$lines = explode("\
", trim($a));
foreach($lines as $line) {
if(preg_match('/???/', $line, $m)) {
}
}
if you can please help me.