Date: prev next · Thread: first prev next last
2021 Archives by date, by thread · List index


Den sön 16 maj 2021 kl 05:48 skrev Dave Stevens <geek@uniserve.com>:

Here's a snippet of a youtube auto-generated CC transcript.
Can someone show how to delete the lines that have times? as far as i
know they are strictly alternating and have exactly 1 colon, but that's
where my smarts end. Anyone have a suggestion?

Dave


in Writer?
If so:
Search7Replace
Check Regular expressions.
In the search field: [0-9:]+ \n
Leave the replace field empty.
Click Replace all and BAM, those lines are gone almost before you clicked….
If that's too scary, first click Search all to see if the right stuff was
found.

I tested this with the data in your post and every line is ended with a
space and a new line (not a paragraph break). If the space isn't there in
the real data, just remove it from the search field:
[0-9:]+\n
If the real data have paragraph breaks instead of newline characters, this
won't work.
Also note that this would also delete lines that ends with a number or
colon followed by a space. Tell me if that's a problem and we'll try to
work something out.


Kind regards

Johnny Rosenberg





25:49
that's always been the case yeah and
25:52
that's essentially it and a recently a
25:55
study team
25:56
... more

--
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems?
https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy



-- 
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.