Replace with Found Character(s)

D

DaveBennett

Task: Replace carraige return followed by any digit with two hard returns
and digit found. More generally, how can I replace with the found string.

I know how to use ^p^# to find string <cr><anydigit>. But how do I tell the
replace function to replace with ^p^p<digitfound>?

thanks
 
H

Helmut Weber

Hi Dave,

search for:
^13([0-9]{1})
replace with:
^p^p\1

Use wildcards set to true.

But note that should be executed only once,
otherwise you would end up with as many paragraph marks (+1)
before a digit as there were executions of the
find and replace command.
--

Greetings from Bavaria, Germany

Helmut Weber

Vista Small Business, Office XP
 
H

Helmut Weber

the {1} is redundant.

--

Greetings from Bavaria, Germany

Helmut Weber

Vista Small Business, Office XP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top