“Indent” is not a character property – it belongs to paragraph formatting, so it won’t be found by regular regex.
I can think of two ways to attempt to deal with this on a search/replace basis…
(1) Use the Alternative dialog Find & Replace for Writer (also known as “AltSearch”). Using syntax like:
[:::ParaFirstLineIndent=1000::]
it ought to be possible to find paragraphs with that property. Do see the online help, though. You need to click the “Pick Properties” button in that dialog to get the settings for your file.
In my tests on an RTF file produced by WordPad, LibO Writer + AltSearch could find paragraphs with any indent set (with [:::ParaFirstLineIndent=::]
) but not paragraphs with a specific indentation. Not sure why.
(2) The other possibility would be to save your RTF file as a “flat” ODT file = *.fodt
. You can then edit this with a plain text editor, and find the paragraph styling you want to manipulate. In my test file, the indent paragraph had a style name of “P5”, with a definition in the file header including fo:text-indent="1cm"
.
Ideally, of course you want to be able to assign all indent paragraphs of the same kind to a given Writer paragraph-style, I suppose (with “Find All”). If you could get the AltSearch option working, then you should be able to do that. I don’t think the second option here helps you with that.
Perhaps someone else will come up with a better solution.