Word .NET > Tutorial > Find and replace options

FindOptions controls how the find and replace methods match text. The search is case sensitive by default. WholeWord matches whole words only, UseRegularExpressions treats the search text as a regular expression and substitutes group references such as $1 in the replacement text, UseWildcards enables the wildcards *, ? and [ ], Scope restricts the search to parts of the document and MaxResults limits the number of matches.

C# example - Case insensitive, whole words only
C# example - Regular expressions
C# example - Wildcards, scope and maximum number of results
VB example

Need help? Ask our developers: