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

On 11/09/2020 01:38, Ade Malsasa Akbar wrote:
Interesting question, Seamas. I found a reference here and tried that on LibreOffice
Writer 6.4 and it seems it works:


It can find your "[thus]" without the brackets.
I've tried the various regex in this thread and this last one (above) produces an unusual result 
for me.

In the Find and Replace dialogue, if I press "Find Next" it finds the next occurence and highlights only the contents inside the 
brackets as expected. But the odd behaviour comes when I press "Replace" - it does not replace the contents but just finds the 
next occurrence.  In other words, the "Replace" button acts exactly the same as the "Find Next" button.

If I select "Replace All", it does just that.  I usually avoid the 'replace all' function because 
of the possibility of unexpected consequences, at least until after I have used the 'Find Next' and 'Replace' 
sequence a few times.

For the other regex in this thread, the "Find Next" and "Replace" buttons behave correctly.

I tried many times also using the alternative expression mentioned in the link above,


|(?<=\[)[^]]+(?=\])  ,|and the result was always the same - in my LibreOffice Writer


To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
Privacy Policy:


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.