Re: Have any idea about regular expression ?
From: Mo/G&G (mo_at_naggama.co.kr)
Date: 10/08/03
- Next message: Paulus Magnus: "Re: current date - 7 dayz?"
- Previous message: Paulus Magnus: "Re: (newbie) problem with mail()"
- In reply to: Matthias Esken: "Re: Have any idea about regular expression ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 8 Oct 2003 09:46:39 +0900
Thanks Matthias
It works perfect.
$aaa = preg_replace("/((<[^>]*)|\d)/e", '"\2"=="\1"? "\1":"0"', $sentence);
Thanks again
Regards,
Mo
"Matthias Esken" <muelleimer2003nospam@usenetverwaltung.org> wrote in
message news:blv47q.1l0.1@usenet.esken.de...
> "Mo" <mo@naggama.co.kr> schrieb:
>
> > Have any idea about regular expression ?
> >
> > I posted this question to other newsgroup, but I'm still hungry for it.
> >
> > I tried to change any numeric characters to Zero like following;
> > $aaa = ereg_replace ("|0-9|", "0", $sentence);
> > This seems working perfect.
> >
> > My question is how I can do this function only for outside of html tags.
> > I don't want any numeric characters to be changed inside html tags.
>
> Give it a try - I didn't try it myself. :-)
>
> | $aaa = preg_replace("/((<[^>]*)|\d)/e", '"\2"=="\1"? "\1":"0"',
$sentence);
>
> Regards,
> Matthias
- Next message: Paulus Magnus: "Re: current date - 7 dayz?"
- Previous message: Paulus Magnus: "Re: (newbie) problem with mail()"
- In reply to: Matthias Esken: "Re: Have any idea about regular expression ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|