Search and replace in Word with wildcards

Costas

Administrator
Staff member
WildcardPurposeExample
?Any single characterh?t will find hat, hot, and h t
*Any number of charactersa*d will find ad, ahead, and as compared
[ ]One of these characterst[ai]n will find tan and tin, but not ton
[ - ]One of these characters in a range[b-d]ot will find bot, cot, and dot
[! ]Not the specific characters[!d]ust will find rust and must, but not dust
<The beginning of a word<(some) will find something, someone, and somewhere
>The end of a word(one)> will find stone, cone, and provolone
@One or more instances of a charactercor@al will find coral and corral
{n}Exactly n instances of a character^p{2} will find two consecutive paragraph breaks
{n,}At least n instances of a character10{2,} will find 100, 1000, and 10000
{n,m}Between n and m instances of a character10{2,3} will find only 100 and 1000, not 10000

to escape a character use \

src - https://www.customguide.com/word/how-to-use-wildcards-in-word
 
Top