Table of Contents

Class RegexMatchesResult

Namespace
Apryse.TemplateExtraction
Assembly
Apryse.TemplateExtraction.dll

Represents the result of a regex operation containing all matches.

public class RegexMatchesResult
Inheritance
object
RegexMatchesResult

Constructors

RegexMatchesResult(string, bool, RegexMatch[]?)

Initializes a new instance of the RegexMatchesResult class with specified parameters.

public RegexMatchesResult(string regexPattern, bool hasMatches, RegexMatch[]? matches)

Parameters

regexPattern string

The regex pattern used.

hasMatches bool

Indicates if matches were found.

matches RegexMatch[]

The found matches.

Properties

HasMatches

Gets a value indicating whether any matches were found during extraction.

public bool HasMatches { get; }

Property Value

bool

Matches

Gets the list of all matches found.

public RegexMatch[]? Matches { get; }

Property Value

RegexMatch[]

RegexPattern

Gets or sets the regular expression pattern used for matching.

public string RegexPattern { get; set; }

Property Value

string