Numerical string

S

Sasa

Hello,
I was wondering, what is the code for searching only for
numerical string? Is that possible?

For example:
I have sentence like this:

abcdefghijlkfasldjfsjfkjl3sdffasdf.

I want word to find any numerical string my text.
Any clues?

Regards.
Sasa
 
D

Doug Robbins - Word MVP - DELETE UPPERCASE CHARACT

With Word's Edit>Find utility, use ^# to find any digit. With a wildcard
find, use [0-9]{1,}

--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
Doug Robbins - Word MVP
 
S

Sasa

Can you reply more details? It doesnt seem to be working.

If I put a "^#" symboly into "Find what" dialog and turn
on wildcards using, it keeps telling me that "^#" symbol
is not valid.

Regards.
Sasa
 
D

Doug Robbins - Word MVP - DELETE UPPERCASE CHARACT

Do not use the ^# with a wildcard search. If you do a wildcard search, use
[0-9]{1,}

In this context, a wildcard search is one where you check the "Use
wildcards" box

See the article “Finding and replacing characters using wildcards” at:

http://word.mvps.org/FAQs/General/UsingWildcards.htm


--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
Doug Robbins - Word MVP
 

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