Translate

Monday, November 28, 2011

Winword Replace Wildcard Characters


MetacharacterDescriptionExample
?Any single characters?t finds "sat" and "set".
*Any string of characterss*d finds "sad" and "started".
@One or more occurrences of the previous character or expression.lo@t finds "lot" and "loot".
<The beginning of a word<(inter) finds "interesting" and "intercept", but not "splintered".
>The end of a word(in)> finds "in" and "within", but not "interesting".
[a]One of the specified charactersw[io]n finds "win" and "won".
[A-Za-z]Any single character in this range[r-t]ight finds "right" and "sight". Ranges must be in ascending order.
[!A-Z]Any single character except the characters int[!a-m]ck finds "tock" and "tuck", but not the range inside the brackets "tack" or "tick".
{1}Exactly n occurrences of the previous character or expression.fe{2}d finds "feed" but not "fed".
{2,}At least n occurrences of the previous character or expression.fe{1,}d finds "fed" and "feed"
{1,3}From n to m occurrences of the previous character or expression10{1,3} finds "10", "100", and "1000".
^13Carriage Return
()Pattern group ([A-Z])
\1First Pattern group\1 - finds first pattern group and appends a hyphen