find & replace but don't replace one character in find

B

battle

Version: 2008
Operating System: Mac OS X 10.5 (Leopard)
Processor: intel

I want search a text block for a paragraph followed by any digit and replace the paragraph mark with a tab and keep the digit that was there. I could do the search 10 times changing the search/replace from 0 thru 9, but can't I use a wildcard or some other trick in the replace string so that I can use the any digit string - ^# - in the find function and do the procedure 1 time?
Thanks
 
J

John McGhie

You need to go beyond wild cards and use "Regular Expressions".

Find ([0-9])(^13) and replace with \1^t

See http://office.microsoft.com/en-us/help/HA010873051033.aspx

Cheers


Version: 2008
Operating System: Mac OS X 10.5 (Leopard)
Processor: intel

I want search a text block for a paragraph followed by any digit and replace
the paragraph mark with a tab and keep the digit that was there. I could do
the search 10 times changing the search/replace from 0 thru 9, but can't I use
a wildcard or some other trick in the replace string so that I can use the any
digit string - ^# - in the find function and do the procedure 1 time?
Thanks

--
Don't wait for your answer, click here: http://www.word.mvps.org/

Please reply in the group. Please do NOT email me unless I ask you to.

John McGhie, Microsoft MVP, Word and Word:Mac
Sydney, Australia. mailto:[email protected]
 

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