matlab.unittest.constraints.Matches Class
R2026bNamespace: matlab.unittest.constraints
Superclasses: matlab.unittest.constraints.BooleanConstraint
Test if value matches specified regular expression
Description
The matlab.unittest.constraints.Matches class provides a constraint to test
if a value matches a specified regular expression.
Creation
Description
c = matlab.unittest.constraints.Matches(
creates a constraint to test if a value matches the specified regular expression. The
constraint is satisfied by a string scalar or character vector that matches
expression)expression.
c = matlab.unittest.constraints.Matches(
specifies options using one or more name-value arguments. For example, expression,Name=Value)c =
matlab.unittest.constraints.Matches(expression,IgnoringCase=true) creates a
constraint that is insensitive to case.