Specification.

Match(string, RegexOptions) Method

Summary

Creates MatchSpecification:

Checks if string candidate match a given Regex pattern.

Namespace
FluentSpecification
Containing Type
Specification

Syntax

[PublicAPI]
[NotNull]
public static IComplexSpecification<string> Match(string pattern, RegexOptions options = null)

Attributes

Type Description
PublicAPI
NotNull

Parameters

Name Type Description
pattern string Regex pattern.
options RegexOptions Regex matching options.

Return Value

Type Description
IComplexSpecification<string> New complex Specification.

Exceptions

Type Description
System.ArgumentException Thrown when pattern is null or empty.
GitHub