Re: [PHP] problems with regex

2006-05-29 Thread Adam Zey
Merlin wrote: thank you, that worked excellent! Merlin Dave Goodchild schrieb: On 27/05/06, Merlin [EMAIL PROTECTED] 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

Re: [PHP] problems with regex

2006-05-29 Thread Richard Lynch
On Sat, May 27, 2006 8:58 am, Merlin wrote: 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); An alternative: $str =

[PHP] problems with regex

2006-05-27 Thread Merlin
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); Thank you for any help, Merlin -- PHP General Mailing

Re: [PHP] problems with regex

2006-05-27 Thread cajbecu
Merlin 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); Thank you for any help, Merlin

Re: [PHP] problems with regex

2006-05-27 Thread Dave Goodchild
On 27/05/06, Merlin [EMAIL PROTECTED] 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

Re: [PHP] problems with regex

2006-05-27 Thread Jochem Maas
Merlin 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); $s = ?!help!?; echo

Re: [PHP] problems with regex

2006-05-27 Thread Merlin
thank you, that worked excellent! Merlin Dave Goodchild schrieb: On 27/05/06, Merlin [EMAIL PROTECTED] 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