Re: [PHP] (another) regex difficulty

2003-10-02 Thread jonas_weber
Am Donnerstag, 02.10.03 um 01:37 Uhr schrieb Cristian Lavaque: doh, I now understand your question, you don't mean the asterisk literally, but as any character that follows a backslash... sorry -_- that's right ;) -- anyway, thanks for your effort! my problem was that i misunderstood the escape-t

Re: [PHP] (another) regex difficulty

2003-10-01 Thread Curt Zirzow
* Thus wrote jonas_weber @ gmx. ch ([EMAIL PROTECTED]): > 01.10.03 at 18:17 Curt Zirzow wrote: > >preg_replace('/(? > 01.10.03 at 18:27 CPT John W. Holmes wrote: > >$term = preg_replace('/[^\\]./','x',$term); > > they don't work (thanks anyway) the example below should turn any character exept

Re: [PHP] (another) regex difficulty

2003-10-01 Thread CPT John W. Holmes
From: <[EMAIL PROTECTED]> > it's pretty simple: i need a regex that matches any character in a > string except "\*" (* stands for any char that follows the "\"). > > example: "this is \ba test" > should match: this a is test > > isn't there a way to do this? Turn that around. What you need to do

Re: [PHP] (another) regex difficulty

2003-10-01 Thread jonas_weber
01.10.03 at 18:17 Curt Zirzow wrote: preg_replace('/(?01.10.03 at 18:27 CPT John W. Holmes wrote: $term = preg_replace('/[^\\]./','x',$term); they don't work (thanks anyway) it's pretty simple: i need a regex that matches any character in a string except "\*" (* stands for any char that follows t

Re: [PHP] (another) regex difficulty

2003-10-01 Thread CPT John W. Holmes
From: <[EMAIL PROTECTED]> > regular expressions > the example below should turn any character exept "\*" (*= any char) > into an "x": > > $term = preg_replace('/[^(\\\)+(.){1}]/', 'x', $term); > > but i guess because of the [brackets] the "." (period) is treated as > character "." instead as metac

Re: [PHP] (another) regex difficulty

2003-10-01 Thread Curt Zirzow
* Thus wrote jonas_weber @ gmx. ch ([EMAIL PROTECTED]): > regular expressions > the example below should turn any character exept "\*" (*= any char) > into an "x": > > $term = preg_replace('/[^(\\\)+(.){1}]/', 'x', $term); preg_replace('/(?http://php.net/manual/en/pcre.pattern.syntax.php Curt --

[PHP] (another) regex difficulty

2003-10-01 Thread jonas_weber
regular expressions the example below should turn any character exept "\*" (*= any char) into an "x": $term = preg_replace('/[^(\\\)+(.){1}]/', 'x', $term); but i guess because of the [brackets] the "." (period) is treated as character "." instead as metacharacter (that matches any char). anyo