(never mind) Re: [Mediawiki-l] escaping "*" character in regex
=James Birkholz=
j.birchwood at verizon.net
Sun Jan 23 08:04:02 UTC 2005
I could have sworn that I had tried this before and it didn't work, but
this seems to be working now:
$output = ereg_replace("z\*","ż", $output);
Yay!
James
At 01:37 AM 1/23/05, =James Birkholz= wrote:
>I don't use regexp often enough, and I'm not finding the answer in my
>reference books.
>
>I need to to replace any occurance of the chars "Z*" or "z*" with the html
>encoding text as below:
> $output = ereg_replace("z*","ż", $output);
>
>how do I get the "*" to be treated as a literal character, instead of "any
>number of occurances" designator?
More information about the MediaWiki-l
mailing list