After you gave up, I made a file containing sixteen copies of:
twelve eleven ten nine eight seven six five four three two one this line succeeded in being matchedWhen I used the regex you quoted, it showed 16 matches, and each match was the line with “succeeded” plus the 10 lines before it:
bf34c849-f868-49da-b09a-47e61dc9be7b-image.png
As far as I can tell, that “worked”, based on the problem statement you made in your posts.
When you say “but not working”, when it works for us, you have to provide more than “not working” in order for us to understand how your requirements differ from those that you’ve stated.
The “Useful References” I linked were to help you ask your question better. and would be useful to help you ask in a way that we can better understand what you want. The “Please Read Before Posting” gives important information about how to format a post, and links to how to format your text in such a way that we can read it (rather than requiring a moderator go in and fix your posts so that the regex are readable; as a moderator, I was willing to do that twice, because I thought it made your questions more accessible, which would make it more likely that you would get your help). The “Template…” is just that, a template that you can use to easily format your search/replace questions so that you give us both example data and what you have already tried. The last two were additional reading that will help you in the future.
I went to a lot of effort to make sure you got good help, and yet the extent of your reply was “but not working”. If you try harder, we can continue to try helping. If you give up, then you will never learn how to do what you want. It’s really up to you.