Re: Replace a specific block of data
- From: daggerquill@xxxxxxxxx (Jay Savage)
- Date: Mon, 27 Oct 2008 16:47:40 -0400
On Mon, Oct 27, 2008 at 7:32 AM, Brian <brian54321uk@xxxxxxxxxxx> wrote:
Hello again
Not too sure how to pose this question, but here goes.
Working on an html page.
There are many blocks of code placed between <tr> and </tr> in the page.
The block(s) I am playing with have seven lines of code placed between <tr>
and </tr>, (repeated a number of times throughout the page) but which have
specific differences to all the other blocks. The first being, each line in
this block contains the word scope.
The second being, none of the other blocks contain any of the following data
between ">" and "<"
Hi Brian,
There is no need to reinvent the wheel, here. Parsing HTML is
notoriously difficult, and other people have spent years on the
problem.
Take a look at HTML::Tree or HTML::TokeParser, for starters.
HTH,
-- jay
--------------------------------------------------
This email and attachment(s): [ ] blogable; [ x ] ask first; [ ]
private and confidential
daggerquill [at] gmail [dot] com
http://www.tuaw.com http://www.downloadsquad.com http://www.engatiki.org
values of β will give rise to dom!
- Follow-Ups:
- Re: Replace a specific block of data
- From: Brian
- Re: Replace a specific block of data
- References:
- Replace a specific block of data
- From: Brian
- Replace a specific block of data
- Prev by Date: Re: Curly braces and the logic of PERL
- Next by Date: Re: Replace a specific block of data
- Previous by thread: Replace a specific block of data
- Next by thread: Re: Replace a specific block of data
- Index(es):
Relevant Pages
|