Method Find

Namespace
SoftZenPdf.Redact
Assembly
SoftZenPdf.Redact.dll

Find(Regex)

Finds text matching a regular expression on every page, without marking it.

public IReadOnlyList<RedactionMatch> Find(Regex pattern)

Parameters

pattern Regex

The pattern. A match does not cross pages but may cross lines (use \s or \n for the line break).

Returns

IReadOnlyList<RedactionMatch>

The matches, page by page, each with the areas around its glyphs.

Find(string, RegexOptions)

Finds text matching a regular expression on every page, without marking it.

public IReadOnlyList<RedactionMatch> Find(string pattern, RegexOptions options = RegexOptions.None)

Parameters

pattern string

A .NET regular expression.

options RegexOptions

Regular expression options, such as IgnoreCase.

Returns

IReadOnlyList<RedactionMatch>