Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.newusers
Island Girl Island Girl is offline
external usenet poster
 
Posts: 192
Default Find and Replace

Suppose I have a 90 page document crammed full of the following number
patterns: 11R1962-72. I need to put these numbers in parentheses wherever
they appear in the document. You've taught me so far how to do that
successfully--and I thank you!

But some of the numbers have a period after the R (i.e., 11R.1962-72). How
do I find either of these patterns in one find-and-replace action?

I guess the simplest thing would be to find and remove the period, but
that's too easy!

Thanks more than I can say. This group offers the very best education in
Word that I've ever come across. And I thank you!
  #2   Report Post  
Posted to microsoft.public.word.newusers
Tony Jollans Tony Jollans is offline
external usenet poster
 
Posts: 1,308
Default Find and Replace

Word does not have a code for (zero or more) or (zero or one) occurrences of
a character so you have to work round this a little. What pattern are you
using at the moment?

If you look for (up to R) (dot or digit) (3 or 4 digits) (hyphen and on) you
should find your numbers with the dot, and those without, but also any with
a dot and only three digits - if this is problematic, there's probably
another way if you give a bit more detail of the strings (or a pointer to
earlier threads)

--
Enjoy,
Tony

"Island Girl" wrote in message
...
Suppose I have a 90 page document crammed full of the following number
patterns: 11R1962-72. I need to put these numbers in parentheses
wherever
they appear in the document. You've taught me so far how to do that
successfully--and I thank you!

But some of the numbers have a period after the R (i.e., 11R.1962-72).
How
do I find either of these patterns in one find-and-replace action?

I guess the simplest thing would be to find and remove the period, but
that's too easy!

Thanks more than I can say. This group offers the very best education in
Word that I've ever come across. And I thank you!


  #3   Report Post  
Posted to microsoft.public.word.newusers
Island Girl Island Girl is offline
external usenet poster
 
Posts: 192
Default Find and Replace

Thanks again, Tony, for all of your great help. I hope it will one day be
possible to use "0 or more" occurrences of a character. Until then, I'll get
by with a little help from you and your group!

"Tony Jollans" wrote:

Word does not have a code for (zero or more) or (zero or one) occurrences of
a character so you have to work round this a little. What pattern are you
using at the moment?

If you look for (up to R) (dot or digit) (3 or 4 digits) (hyphen and on) you
should find your numbers with the dot, and those without, but also any with
a dot and only three digits - if this is problematic, there's probably
another way if you give a bit more detail of the strings (or a pointer to
earlier threads)

--
Enjoy,
Tony

"Island Girl" wrote in message
...
Suppose I have a 90 page document crammed full of the following number
patterns: 11R1962-72. I need to put these numbers in parentheses
wherever
they appear in the document. You've taught me so far how to do that
successfully--and I thank you!

But some of the numbers have a period after the R (i.e., 11R.1962-72).
How
do I find either of these patterns in one find-and-replace action?

I guess the simplest thing would be to find and remove the period, but
that's too easy!

Thanks more than I can say. This group offers the very best education in
Word that I've ever come across. And I thank you!



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Find+Replace Dialog Box, Replace with Format problem Kathy Microsoft Word Help 3 February 1st 08 04:26 AM
Find multiple characters in one find using MSword find/replace Cliff Microsoft Word Help 2 October 29th 06 07:48 PM
Trying to replace words with fields using Find/Replace mbleyle Microsoft Word Help 2 March 29th 06 11:35 PM
Using find and replace or macros to replace page ranges JeremyC Microsoft Word Help 7 February 13th 06 09:20 PM
Find/ Replace is auto-capping the words I want to replace with Graham Mayor Microsoft Word Help 8 January 27th 06 01:39 AM


All times are GMT +1. The time now is 09:05 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"