<section>some content<section>inner content</section></section><section>more content</section>
<section id=“main_content">some content<section>inner content</section></section><section>more content</section>
Far from being an expert but this looks amenable to GREP searching/replace.
Is there a way to regularly identify the first occurrence in each file? What comes immediately before it?
Cheers,
J
--
This is the BBEdit Talk public discussion group. If you have a feature request or believe that the application isn't working correctly, please email "sup...@barebones.com" rather than posting here. Follow @bbedit on Mastodon: <https://mastodon.social/@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 bbedit+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/bbedit/0E76497B-0BB8-4AB2-A2B2-C595E261F46F%40faiman.org.
https://orcid.org/0000-0002-7213-2147
Davies, J. P. (2025). Landscapes of Liminality: Towards a Map. In A. S. Webb (Ed.), 2025 New Horizons in Threshold Concepts (Vancouver B.C.).
Davies, J. P. et al (eds.). (2024). Threshold Concepts in the Moment. Brill.
Mosurinjon S., Davies. J. P. (2024) 'Secularism as a Universalising Threshold Concept' in Davies et al (2024), 72--85.
But this would replace every instance of "<section>", where he wants to replace only the first one...
Cheers,
Jason
On 7 May 2026, at 18:13, Massimo Rainato wrote:
i hope that help,
use only <section> as search
use <section id="main_content">\1page 221 manuale / in replacement patterns
\N nth captured substring, first only.
[mrai64]
Il giorno 7 mag 2026, alle ore 18:59, flet...@cumuli.com ha scritto:
You can do this with a search/replace. The first pattern matches the contents of the file before the first <section>. [\s\S] is used instead of period so it will match without finding the next repetition of the pattern. The question mark on the first grouping makes it match the first <section>.
Search pattern: ([\s\S]?)<section>([\s\S])
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 bbedit+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/bbedit/0E76497B-0BB8-4AB2-A2B2-C595E261F46F%40faiman.org.
--
This is the BBEdit Talk public discussion group. If you have a feature request or believe that the application isn't working correctly, please email "sup...@barebones.com" rather than posting here. Follow @bbedit on Mastodon: https://mastodon.social/@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 bbedit+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/bbedit/E3C3CFD9-09EE-4CE3-8854-7238E8446121%40cumuli.com.
--
This is the BBEdit Talk public discussion group. If you have a feature request or believe that the application isn't working correctly, please email "sup...@barebones.com" rather than posting here. Follow @bbedit on Mastodon: https://mastodon.social/@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 bbedit+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/bbedit/971CCAB7-ED4E-4656-8B95-9E37673660D5%40gmail.com.
---
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 bbedit+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/bbedit/A6BAC9FB-2484-44CF-ABE1-7BD4366106C1%40gmail.com.