You are here: preg_replace problem - please help « PHP Programming Language « IT news, forums, messages
preg_replace problem - please help

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация