matlab.unittest.constraints.Matches Class
Namespace: 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(
sets additional 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.