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: $s

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 runn

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?

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 "--",$s,"--",preg_repl

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 $s

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, > > Mer