Class RegexMatchesResult
- Namespace
- Apryse.TemplateExtraction
- Assembly
- Apryse.TemplateExtraction.dll
Represents the result of a regex operation containing all matches.
public class RegexMatchesResult
- Inheritance
-
objectRegexMatchesResult
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
regexPatternstringThe regex pattern used.
hasMatchesboolIndicates if matches were found.
matchesRegexMatch[]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
RegexPattern
Gets or sets the regular expression pattern used for matching.
public string RegexPattern { get; set; }
Property Value
- string