Ask Your Question
0

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

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

anonymous user

Anonymous

updated 2013-01-27 11:59:12 +0200

manj_k 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
1

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

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
2

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

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

Comments

Question Tools

Stats

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

Seen: 167 times

Last updated: Nov 29 '12