put what you want to keep in brackets, so e.g.
^\n?(.{50})
Then \1 will remember and replace that.
This <https://www.autoregex.xyz/> site might help. Try putting in:
start of line followed by at least 50 characters and a space
On Mon, 5 Jun 2023 at 14:32, Otto Munters <[email protected]> wrote:
> In Find and Replace I can do this search:
>
> ^\n?.{50}
>
> But I can't figure out how to replace the same words followed by a line
> break.
> Can anybody help me?
>
> Op zaterdag 3 juni 2023 om 16:46:44 UTC+2 schreef Otto Munters:
>
>> An automatically translated subtitle in YouTube turns two lines in the
>> original language into one long sentence. How can I turn this back into two
>> sentences, the top sentence slightly shorter than the sentence below it. Is
>> there a grep for that? Or how do you do that with text factory?
>>
>> Example output srt file YouTube:
>> 1
>> 00:00:33,360 --> 00:00:45,060
>> Welkom. Leuk om jullie allemaal te zien. We moeten de tijd nemen om
>>
>> 2
>> 00:00:46,560 --> 00:00:52,380
>> de regels in te voeren. Net zoals jij ashram-regels hebt, hebben wij
>> regels voor zelfonderzoek.
>>
>> It should look like this:
>> 1
>> 00:00:33,360 --> 00:00:45,060
>> Welkom. Leuk om jullie allemaal
>> te zien. We moeten de tijd nemen om
>>
>> 2
>> 00:00:46,560 --> 00:00:52,380
>> de regels in te voeren. Net zoals jij ashram-
>> regels hebt, hebben wij regels voor zelfonderzoek.
>>
>> Thanks a lot for your help!
>>
>> --
> 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/adbe2498-9b89-4afd-b284-b30ee7debb71n%40googlegroups.com
> <https://groups.google.com/d/msgid/bbedit/adbe2498-9b89-4afd-b284-b30ee7debb71n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
Kaveh Bazargan PhD
Director
River Valley Technologies <http://rivervalley.io> ● Twitter
<https://twitter.com/rivervalley1000> ● LinkedIn
<https://www.linkedin.com/in/bazargankaveh/> ● ORCID
<https://orcid.org/0000-0002-1414-9098> ● @[email protected]
<https://mastodon.social/@kaveh1000>
*Accelerating the Communication of Research*
*
<https://www.linkedin.com/posts/bazargankaveh_ismte-innovation-award-recipient-kaveh-bazargan-activity-7039348552526921728-XAEB/?utm_source=share&utm_medium=member_desktop>
[image:
https://rivervalley.io/gigabyte-wins-the-alpsp-scholarly-publishing-innovation-award-using-river-valleys-publishing-technology/]
<https://rivervalley.io/gigabyte-wins-the-alpsp-scholarly-publishing-innovation-award-using-river-valleys-publishing-technology/>*
--
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/CAJ2R9pibYE6DEr%2BTomN%2B1nnYDHWpi3n8MhpZm%3DbHfGaZTakgJA%40mail.gmail.com.