> On Sep 14, 2021, at 16:57, Sonic Purity <[email protected]> wrote: > Re-reading the Grep help file with BBEdit, i thought lookahead might help. I > tried: > > <h2>([\s\S]+?)(?<h2>) >
Hey There, You miswrote your lookahead-assertion. This: > <h2>([\s\S]+?)(?<h2>) > Should look like this: <h2>([\s\S]+?)(?=<h2>) This is fine, except it will exclude your last chapter. Try this instead: (?s)<h2>.+?(?=<h2>|\Z) -- 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 here. Follow @bbedit on Twitter: <https://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 view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/44B8E425-64DA-4A2F-B315-2E0E26E019BC%40gmail.com.
