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
* 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
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
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
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
* 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
--
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
7 matches
Mail list logo