Re: Cannot even come up with the beginning of a regex

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Alright, now that I've confirmed that preg_replace can work withUTF-8, I'm back to my original regex:
$test="כאכ כ ככ ח";$test=preg_replace('/\bכ/u','ך', $test);print $test;print "<pre dir=\"rtl\">$text</pre>";
This _should_ change the letter "כ" to "ך" only if it is at the end ofa word. Can anyone push me in the right direction as to why that isnot happening?
Thanks for any and all advice.
Dotan Cohen
http://what-is-what.comhttp://gibberish.co.ilא-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת;
A: Because it messes up the order in which people normally read text.Q: Why is top-posting such a bad thing?

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux