Submitted by kratib on Sun, 17/04/2005 - 12:10.
( categories: Programming )
Hi all,
I'm trying to use preg_replace for some Arabic text normalization. Specifically, convert all end-of-word 'ي' to 'ى'. So I used the following:
preg_replace('/ي\b/', 'ى', $subject);
but it's not replacing anything, even though using it does work with latin chars. I'm using UTF-8. I've read elsewhere that there's a problem but I have no experience with PCRE.
Has anybody encountered this before?
TIA, Karim

Get GNU / Linux
News Feed
Blogs
Event Photos
Screen Shots
Polls
Popular Content
Members
Search
Wall Papers