Re: Re: Parsing HTML
| From: | Henry | Date: | Mon, 28 Oct 2002 15:22:22 +0000 |
| Subject: | Re: Re: Parsing HTML | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-121722@lists.php.net to get a copy of this message | ||
I assure you that I am not trying to circumvent google's anything. I'm
trying to provide a HTML translation page tool for some of my visitors where
they will provide there own URL and a translation of some keywords will be
done for them. Thats all.
I never actually was going to flaunt googles terms and conditions and after
the replys from Rasmus I went away and looked into the mater. I agree whole
heartedly with what Rasmus and others said and will not be circumventing
APIs under any circumstance.
Henry
"John Nichel" <jnichel@by-tor.com> wrote in message
news:3DBD546D.3000500@by-tor.com...
> The tools for you to execute the regular expression are there for you in
> the manual. The actual regular expression that you're looking for is
> not a php issue. And I can't say that I'm totally convinced that you're
> still not trying to circumvent google's TOS.
>
> Henry wrote:
> > What; nobody has anything to say about parsing HTML and doing search and
> > replaces!! Is there another news group that might be better suited? I do
> > want to do it PHP if I hadn't made that clear.
> >
> > Somebody, anybody, please help.
> >
> > "Henry" <henry@teacake.f9.co.uk> wrote in message
> > news:20021028103849.2175.qmail@pb1.pair.com...
> >
> >>Hi All,
> >>
> >>I would like to be able to do a serach and replace in a HTML document.
For
> >
> > a
> >
> >>list of words;
> >>
> >>for example:
> >>hello become buongiorno
> >>yes becomes si
> >>size become grossezza
> >>
> >>The problem is that if I change the word "size" without considering html
> >>tags and html comments in the case of inline javascripts I'll end up
with
> >>"broken" html.
> >>
> >>Is there a way to only do the search and replace outside the tags and
> >>comments.
> >>
> >>It is further complicated by the fact that I would still like to do the
> >>replacements within strings for example within meta tags!
> >>
> >>Any ideas.
> >>
> >>Henry
> >>
> >>
> >
> >
> >
> >
>
>