Re: problems with regex

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



thank you, that worked excellent!

Merlin

Dave Goodchild schrieb:
On 27/05/06, Merlin <ngroups@xxxxxxxxxxx> wrote:

Hi there,

I am somehow lost when it comes to regex. I am trying to remove ! and ?
characters from a string. Could somebody please help me to get a working
regex running for that?

I tried: $str = preg_replace('/\!\?\./', ' ', $str);


How about $str = preg_replace('/(\!|\?)+/', $str);





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux