does preg_replace or ereg_replace in php support unicode in pattern?

Asked by dinar qurbanov

does preg_replace or ereg_replace in php support unicode in pattern? in ubuntu 7.10?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
dinar qurbanov
Solved:
Last query:
Last reply:
Revision history for this message
dinar qurbanov (qdinar) said :
#1

i have found what is should be done to support unicode:
pattern for preg_replace should with "u" modifier: $pattern='/hereispattern/u';
for ereg_replace:
in this page is said that "mb_ereg_replace" should be used:
http://webcollab.sourceforge.net/unicode.html .