On 04/27/2019, at 09:01, Phil Emery <[email protected] <mailto:[email protected]>> wrote: > I assumed as BBEdit could detect the div (you click on the start of > Main-content and it selects everything till the close tag) that it could do > this.
Hey Phil, Nyet. As Patrick has explained two different mechanisms are involved. > The html is very well formatted as it's an export from a Hubspot website. Ah, in that case the task should be pretty simple. Find: (^\h+)(<div.+?main-content)(?s).+?\1</div> Since the HTML is well formatted we can use the indention level of the main-content div to find its closing tag. -- Best Regards, Chris -- This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "[email protected]" rather than posting to the group. Follow @bbedit on Twitter: <https://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.
