Table of Contents

Method FindWildcards

Namespace
DocWright.Dom.Editing
Assembly
DocWright.Dom.dll

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

root DomNode

The document or subtree to search.

pattern string

The pattern.

options FindOptions

Its 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.