This proposal applies for all versions of LO Writer I have used so far. I just checked its necessity with the current development version.
There is a very useful LibreOffice plugin called AltSearch.oxt. I frequently use it e.g. to replace paragraph marks (\p) by forced linefeeds (\n), protected spaces (\S) by normal spaces, remove all spaces before any paragraph mark and the like. But I still use AltSearch very often because with the normal Search/Replace mechanism, I can't search for paragraph marks and: AltSearch can search for styles, e.g. for [:::CharStyleName=Code(Zch)::].
I already have made a collection of such batch procedures for AltSearch.oxt, but unfortunately from time to time AltSearch.oxt crashes with error messages like this one:
Basic Runtime error in module AltSearch>fromTools in line 117 with the additional information com.sun.star.container.NoSuchElementException Message: /home/buildslave/source/libo-core/basic/source/uno/namecont.cxx117. Line 117 is part of
Function LoadDialog_(Libname as String, DialogName as String, Optional oLibContainer)
and the offending line is
Unfortunately AltSearch is very buggy and it happens over and over that it stops working even if it has worked for a long time in one and the same version of LibreOffice. Also it looks like the development of AltSearch has ended or fallen into hibernation: the current release 1.4.2 dates back to 2017-03-24 according to https://extensions.openoffice.org/de/project/alternative-dialog-find-replace-writer-altsearch.
Therefore I propose to make AltSearch.oxt superfluous by adding natively its capabilities directly to LibreOffice Writer, especially those necessary to search for paragraph styles, character styles, hyperlinks, patterns in the hyperlinks, direct formatting and all other AltSearch pattern options.
This includes the capability to quickly load and store batch patterns as it is done in AltSearch.oxt.
*** This bug has been marked as a duplicate of bug 38261 ***