# Can you finding specific formatting and then replace text? [closed]

Anonymous

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!

edit retag reopen merge delete

### Closed for the following reason the question is answered, right answer was accepted by Alex Kemp close date 2015-10-19 02:42:37.197942

Sort by » oldest newest most voted

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).

more

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

more