Thanks Ulrich!

Op dinsdag 30 juli 2024 om 08:24:53 UTC+2 schreef Ulrich Kapp:

> Hi Otto,
>
> I suggest "(^[\d]{3}$)\n(^[\d]{2}.*[\d]{3}$)\n(^.*$)\n(^.*$)\n(^.*$)" as 
> search pattern
> and "\1\n\2\n\3\n\4 \5" as replacement pattern.
>
> But with no guarantee…
>
> It would be best to play around in the pattern playground with a copy of 
> the original data, I think.
>
> Have a nice day, Ulrich
>
> p.s.: The rest of the week I'm  offline. :)
> Otto Munters schrieb am Montag, 29. Juli 2024 um 15:08:44 UTC+2:
>
>> Hi Ulrich
>>
>> This helps to find the sentences I want to improve.
>> It's about subtitles, which I want to get on 2 lines.
>> Also, is there a Greb that allows me to paste the word(s) on the 3rd line 
>> of text behind the second line of text?
>> This is an example:
>>
>> 184
>> 00:10:42,150 --> 00:10:47,930
>> But the content, which it was 
>> always having its existence in,
>> which
>>
>> 185
>> 00:10:47,930 --> 00:10:51,970
>> never had its existence apart 
>> from, which has its existence in
>>  now,
>>
>> should be:
>> 184
>> 00:10:42,150 --> 00:10:47,930
>> But the content, which it was 
>> always having its existence in,
>> which
>>
>> 185
>> 00:10:47,930 --> 00:10:51,970
>> never had its existence apart 
>> from, which has its existence in now,
>>
>> Thanks in advance!
>> Best regards, Otto
>> Op maandag 29 juli 2024 om 14:33:49 UTC+2 schreef Ulrich Kapp:
>>
>>> Hi Otto,
>>>
>>> I hope my last hint did help you.
>>>
>>> Here's the one for the question above:
>>>
>>> Use the search pattern (.{1,}\n){5} with Regex activated.
>>>
>>> Cheers!
>>>
>>> Otto Munters schrieb am Montag, 29. Juli 2024 um 12:11:55 UTC+2:
>>>
>>>> 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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/2042afbc-d92e-4ab1-bfba-c34f5be8cbc4n%40googlegroups.com.

Reply via email to