|
Posted by K. on 10/19/07 07:35
Hello!
I would like to use preg_replace function to leave in the result variable
only:
1) letters from A to Z
including Polish letters like �������
including Polish upper letters like �������
2) letters []()-_=+!@#$%^&*`~',/\|.
I have for example such varaible
$text_test="M�� lubi czyta� ksi��ki";
1) How to prevent from Russian letters? Does preg_replace help me to do so?
I have tried to do
preg_replace ("[^a-zA-Z0-9�������-_\.]+",$xxxxx,$text_test)
but I think it is too poor.
2) what should I put in variable $xxxxx, because I don`t know what the
string is to replace for
Please help me
Marcin
Navigation:
[Reply to this message]
|