Ask Your Question

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

asked 2012-11-28 20:38:14 +0100

anonymous user


updated 2020-08-16 13:00:52 +0100

Alex Kemp gravatar image

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 flag offensive 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

2 Answers

Sort by » oldest newest most voted

answered 2012-11-28 21:08:40 +0100

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

edit flag offensive delete link more

answered 2012-11-29 17:55:45 +0100

Edward gravatar image

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

edit flag offensive delete link more


Question Tools


Asked: 2012-11-28 20:38:14 +0100

Seen: 333 times

Last updated: Nov 29 '12