Hello,
I had a problem and I managed to solve it. I think others may get the same trouble so I’m posting my solution here.
Warning: this solution is only for advanced user. I deeply suggest you do a COPY of the original file BEFORE any action “just in case of”. “Case of” happens frequently imho. In this one an error may end with a corrupted file.
I had this problem which has been sometime asked: I had a writer file with picture under which were description of the picture. I wanted to move the text above picture for all picture. Basically a “search find replace” with some regex except you had to put “any picture” into the search bar. It seems in the past there were some extension able to do it but I cannot see any nowadays.
Then I remember odt is is an open file format.
So I basically made a copy of my original file (which I kept in a precious safe place) and open with a file archiver the odt file.
In it I saw a series of file. The one that interested me is content.xml which is a pure xml file. I then opened it with a text editor and could use basic search and replace to do what I needed to do, then replaced the original content.xml with the modified one.
That’s all folks.
PS: thanks a lot libreoffice not only for being free but for using open format