DIGIT-ARC read-only archive · snapshot: July 23, 2026

MS Word - Find and select all string of simlar pattern

5 posts · originally from https://geek.digit.in/community/threads/ms-word-find-and-select-all-string-of-simlar-pattern.197029/

mohityadavx
mohityadavx Original post #1
Apr 20, 2016 at 5:43 PM
I want to find and select all strings of a particular kind in a word document. The strings are of this format

FileList('S-20160302-103416-PERFORMA','Perfroma LST-1-0230316','U00729541','MJH72300DL1996PLC075672','T21')
FileList('S-20160302-103416-PERFORMA','Perfroma BLST-4-0203316','U00741','MJH72300DL1996PLC075672','T21')
FileList('S-20160302-103416-PERFORMA','Perfroma SLST-4-0201316','U0H4F8HF0729541','MJH72300DL1996PLC075672','T21')
FileList('S-20160302-103416-PERFORMA','Perfroma LST-2-0202316','U00729NEFIN541','MJH72300DL1996PLC075672','T21')
FileList('S-20160302-103416-PERFORMA','Perfroma ST-6-0201316','U007EIJFE29541','MJH72300DL1996PLC075672','T21')

And so on
So all of them begin with FileList and all of them end with s2')
However the string length vary in each of these. Is there any way to do the same?
Desmond
Desmond #2
Apr 20, 2016 at 7:01 PM
Which version of MS Word are you using. I think I read somewhere that you can use Regular Expressions with Find and Replace in Word 2010 onwards.

In any other version of MS Word, you can Find and Replace using wildcards.
mohityadavx
Apr 20, 2016 at 7:07 PM
Which version of MS Word are you using. I think I read somewhere that you can use Regular Expressions with Find and Replace in Word 2010 onwards.

In any other version of MS Word, you can Find and Replace using wildcards.

I am using Office 2010 but I am afraid I dont know how to use Regex. Can you help me figure out the same?

- - - Updated - - -

Also wildcard is not working this is what I tried (Please correct me if I am wrong)
FileList* ? *')
ratul
ratul #4
Apr 20, 2016 at 9:13 PM
I am using Office 2010 but I am afraid I dont know how to use Regex. Can you help me figure out the same?

- - - Updated - - -

Also wildcard is not working this is what I tried (Please correct me if I am wrong)
FileList* ? *')

try the wildcard:
Code:
FileList*\'\)