Mega Code Archive

 
Categories / MSOfficeWord 2007 Tutorial / Editing
 

Using Wildcards

A wildcard allows you to search for variable text. To search for a character as a wildcard, type a backslash (\) before the character. The question mark (?) wildcard represents any single character. for example 'b?t' finds bat, bet, bit, and but The asterisk (*) wildcard represents a string of characters. for example 'b*t' finds bit, boat, and burnt (text): Finds string that ends with text: (per) finds viper, deeper [aei]: Finds any one of specified characters aei, for example s[aei]t finds sat, set, and sit [m-z]: Finds characters in range m-z, for example [a-f]it finds fit, bit [!m-z]: Finds any characters except those in range m-z: [!a-f]ield finds yield {n}: Finds n instances of the last character, for example sho{2}t finds shoot, boot but not shot {n,}: Finds at least n instances of the last character, for example sho{1,}t finds shot and shoot {n,m}: Finds n to m instances of the last character, for example 3{1,4} finds 3, 33, 333, and 3333 @: Finds any number of instances of the last character, for example x@ finds x, xxxx, and so on