Find and replace a string in writer

Hi
Is there a way to find/replace a string based on the first and last character?
I have a long document with hundreds of time records-stamps e.g. #00:00:58-1# and I want to remove-delete all time stamps including the beginning and end hashes from one version of the document.

Thanks…

May be so - Alternative Find & Replace for Writer (AltSearch)?

Have you tried using Edit>Find & Replace ticking Regular Expressions?

Your time stamps may be described as #\d\d:\d\d:\d\d-\d+#. Provided there is only one timestamp in a paragraph, this may be simplified as #[\d:-]+# but this latter regexp might match on sequences other than well-formed time stamps.

Enter this regexp in the Find: entry field and nothing in the Replace: field.

You may also add a space before or after the time stamp to avoid leaving runs of multiple spaces in the document.

2 Likes

Thanks
The solution saved me a lot of time
Your help is appreciated

Bob.