Possible Duplicate:
regexp with russian lang
I have a regular expression that filters out certain links out of a text and attaches a file icon based on the filetype of the link. Like this:
$text = preg_replace('((<a href="[\w\./:]+getfile.php\?id='.$file.'"([a-zA-Z0-9_\- ,\.:;"=]*)>)([a-zA-Z0-9_,\.:;&\-\(\)\<\>\'/ ]+)</a>)','\\1'.fileicon($name).'</a> \\1\\3</a> ('.($pagecount?$pagecount." ".($pagecount>1?$pages:$page1).", ":"").readable_filesize($size,1).')',$text);
this worked great until I tried this with some russian text. The input would be something like:
<a href="/site/getfile.php?id=33">Русский</a>
But it won't show the icon before the link and file information after the link, making me suspect the regex doesn't play well with Russian text. What could be the case here?