Matches(String, String?) Method

Definition

Assembly XenoAtom.CommandLine.dll

Validates that a string matches the specified regular expression pattern.

public static OptionValidator<string> Matches([StringSyntax("Regex")] string pattern, string? errorMessage = null)

Parameters

pattern
String
errorMessage
String

Returns