Finding and Replacing Numbers

M

MarkN

Hello

I have a document that has lots of numbered points that were manually
numbered. I would like to use Find and Replace to search for any number
between 1 and 9 that is followed by a full stop and a space and replace it
with nothing.

If anyone can send me the wildcard combination to achieve this it would save
me hours.
 
G

Greg Maxey

Mark,

If you mean a "." (period) when you say "full stop," then use [0-9]. in the
find what field and nothing in the replace with field.

Check more, use wildcards.
 
M

MarkN

Cheers Greg,

You don't happen to know if there is an easy way to replace manually
numbered points with an automatic numbering format.

If not, no problem, thanks for your help, it worked a treat.
 
M

MarkN

Hi Suzanne,

Thanks for that. Do I have to do this one number at a time or should I be
able to perform this with [0-9] in the Find what box?
 
S

Suzanne S. Barnhill

This actually takes two iterations (I'm sure someone more adept than I could
figure out how to do it more efficiently). I test with paragraphs beginning
with a number followed by a period and tab.

First pass:

Find what: [0-9].^t
Replace with: Format: Style: List Number (leave the box empty)

Second pass:

Find what: [0-9].^t
Replace with: <nothing> (clear the style formatting by clicking No
Formatting and leave the box empty)

The first pass finds the numbered paragraphs and applies the style but keeps
the "hard" numbering. The second pass deletes that. In my test, the numbers
were all single digits. To replace double-digit numbers (followed by a
period and tab) you'd need to use

[0-9]{1,}.^t



MarkN said:
Hi Suzanne,

Thanks for that. Do I have to do this one number at a time or should I be
able to perform this with [0-9] in the Find what box?
 
M

MarkN

That's great, thanks very much
--
Cheers,
MarkN


Suzanne S. Barnhill said:
This actually takes two iterations (I'm sure someone more adept than I could
figure out how to do it more efficiently). I test with paragraphs beginning
with a number followed by a period and tab.

First pass:

Find what: [0-9].^t
Replace with: Format: Style: List Number (leave the box empty)

Second pass:

Find what: [0-9].^t
Replace with: <nothing> (clear the style formatting by clicking No
Formatting and leave the box empty)

The first pass finds the numbered paragraphs and applies the style but keeps
the "hard" numbering. The second pass deletes that. In my test, the numbers
were all single digits. To replace double-digit numbers (followed by a
period and tab) you'd need to use

[0-9]{1,}.^t



MarkN said:
Hi Suzanne,

Thanks for that. Do I have to do this one number at a time or should I be
able to perform this with [0-9] in the Find what box?

--
Thanks,
MarkN


Suzanne S. Barnhill said:
Search for the number and replace with an autonumbered style.



Cheers Greg,

You don't happen to know if there is an easy way to replace manually
numbered points with an automatic numbering format.

If not, no problem, thanks for your help, it worked a treat.
--
Thanks,
MarkN


:

Hello

I have a document that has lots of numbered points that were manually
numbered. I would like to use Find and Replace to search for any number
between 1 and 9 that is followed by a full stop and a space and replace
it
with nothing.

If anyone can send me the wildcard combination to achieve this it would
save
me hours.
 

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