Do you truly need to *delete* it, or do you just want to make it
unavailable to the screen/screen reader?

If the latter, you could use the :last-child pseudo class in CSS, and set
it to display : none.

https://developer.mozilla.org/en-US/docs/Web/CSS/:last-child

--Kerri

On Oct 28, 2017 12:07 PM, "jgill" <[email protected]> wrote:

> I can do this in BBEdit and I can do it easily with Applescript, because
> it can search backwards for (?s)<div class="day_report">.*?</div> - but how
> can I search backwards with JavaScript? I want to be able to delete the
> last instance of this div on a web page.
>
> Also, can I run JavaScript from within BBEdit on the front window instead
> of AppleScript?
>
> TIA
>
> --
> This is the BBEdit Talk public discussion group. If you have a
> feature request or would like to report a problem, please email
> "[email protected]" rather than posting to the group.
> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
> ---
> You received this message because you are subscribed to the Google Groups
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/bbedit.
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to