Specification.

NotMatch(string, RegexOptions) Method

Summary

Creates MatchSpecification negation:

Checks if string candidate not match a given Regex pattern.

Namespace
FluentSpecification
Containing Type
Specification

Syntax

[PublicAPI]
[NotNull]
public static IComplexSpecification<string> NotMatch(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