Can you finding specific formatting and then replace text?

How is it possible to do the following in Writer:

  1. Find paragraphs with specific formatting (specifically those that start with “Increase Indent”). This is an existing function.

  2. For each such paragraph, add an identical snippet of text at the beginning using “find and replace all”. So far, trying to add any text just seems to replace the entire paragraph!

I use a very handy extension (Alternative dialog Find & Replace for Writer 1.3.2) to run similar search and replace operations.

http://extensions.libreoffice.org/extension-center/alternative-dialog-find-replace-for-writer

In Search and replace, open More options. Then, check “Format…” that you like. Also check “Regular expressions”.

In “Search for” input .* (dot, asterisk)

In “Replace with” input <your snippet of text>& (basically: your text, ampersand)

Press “Replace All”

This will search for any text inside paragraph and replace it with your text + matched string (that is: entire paragraph).