Method FindWildcards
FindWildcards(DomNode, string, FindOptions?)
Finds every match of a Word wildcard pattern (Find with "Use wildcards", WordWildcards): always matching case and never whole words only, as Word's.
public static IReadOnlyList<TextMatch> FindWildcards(this DomNode root, string pattern, FindOptions? options = null)
Parameters
rootDomNodeThe document or subtree to search.
patternstringThe pattern.
optionsFindOptionsIts timeout, limit and run filter, or null.
Returns
- IReadOnlyList<TextMatch>
The matches, in document order; Groups are its groups for Expand(string, TextMatch).
Exceptions
- ArgumentNullException
An argument is null.
- ArgumentException
The pattern is not one Word accepts.