Maybe I'm not understanding what you're trying to do, but it seems like you could just use the Hard Wrap feature (Text > Hard Wrap...)? Set it to 50 characters and turn "Paragraph fill" off.
Using a regex will break lines within words, which probably isn't what you want. On Mon, Jun 5, 2023 at 9:32 AM 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> > . > -- 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/CAKi-cfs8RFSdBqmacMvOpzakvsOs5D_TJ_rniHcc1mwuLnMryg%40mail.gmail.com.
