You can use the repetition modifier on a parentheses group to find a pattern
that repeats so many times.
This will find five repetitions of a line that starts with an alphanumeric
character.
(\w.*?\n){5}
You can use non-grouping parentheses (:? ... ) if you need to do
search/replaces with this.
[fletcher]
> On Jul 29, 2024, at 3:11 AM, Otto Munters <[email protected]> wrote:
>
> Hi BB friends
>
> How can I find text blocks consisting of 5 lines?
> Example:
> line 1
> line 2
> line 3
> line 4
>
> line 5
> line 6
> line 7
> line 8
> line 9
>
> I then want to find the second block of text.
>
> thanks for your help!
> Otto
>
>
> --
> 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
> "[email protected]" 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 [email protected]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/bbedit/3bdd6c14-8220-4159-9e0c-7b48aedfa74an%40googlegroups.com
>
> <https://groups.google.com/d/msgid/bbedit/3bdd6c14-8220-4159-9e0c-7b48aedfa74an%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
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
"[email protected]" 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/bbedit/DC7DA668-9137-4D59-B392-3473AC86965F%40cumuli.com.