Doigy wrote:
> Using your example, I want to delete everything in the
page before
> <div id="field>
>
> I was thinking there may be an extension that was
reasonably well known.
What you're seeking to do is not as simple as you seem to
think it
should be. The way to do it is to use a regular expression.
If the tag
you're looking for is guaranteed to begin <div id="field",
then a simple
regex will work. If there are any other attributes before the
id, or if
the quotes around field might be missing, it becomes more
complex.
That said, if you want to remove absolutely everything,
including the
DOCTYPE and head, put this in the Find field:
[\w\W]+<div id="field"
In the Replace with field, use this:
<div id="field"
If you want to remove only everything from the opening body
tag, use
this instead:
<body>[\w\W]+<div id="field"
In the Replace with field, use this:
<body><div id="field"
Make sure there's a check mark in the Use regular expression
checkbox,
and click Replace.
--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/