Search code examples
libreoffice-writer

libreoffice writer - special char corresponding to indentation


I must to change using find and replace tool (I'm using the add-on called 'alternative search') a lot of occurrence of a particular word in the beginning of indented lines, like so: [indentation]Word_to_be_replaced, but I can't make it work. There is a special char corresponding to indentation? I tried \t, \n, \r, etc., but not worked


Solution

  • It sounds like the indent is from formatting rather than a whitespace character. So, the word is actually located at the beginning of the line. To search for a word at this location, simply use ^, for example:

    ^Word_to_be_replaced
    

    Documentation for regular expressions is at https://help.libreoffice.org/Common/List_of_Regular_Expressions.