View Single Post
Old 12-11-2008, 10:31 PM   #8
pilotbob
Grand Sorcerer
pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.
 
pilotbob's Avatar
 
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
Quote:
Originally Posted by daesdaemar View Post
Tried that and all the variations I could think of but it did not work. I'm using MS Word.
Ok... so every regex implementation is a bit different.

Use:

[0-9]* John Smith

Apparently word doesn't like the \s for blank space.. you can just type the blank space. Also, make sure you click on the "Use wildcards" checkbox. You might have to click the "More" button to see it.

This basically means find any character between 0-9. The asterisk means find one or more. So this will match

1 John Smith

and

10 John Smith

Of course the J means match a J the o means match o etc. I tested this regex on a document that contains:

1 John Smith
2 John Smith
32 John Smith

And it worked. (Windows and Mac version of Word)

See this topic for some info.

http://office.microsoft.com/en-us/he...873051033.aspx

BOb
pilotbob is offline   Reply With Quote