tools.MatchRegexp
Match text
against a regexp pattern
. The output can be yes
or no
.
Options
- pattern {string}: regular expression pattern.
- flags {optional string}: flags for this regexp.
Inputs
- text {string}: the string to test.
Outputs
- yes {string}: the input string if it matches.
- no {string}: the input string if it doen not match
Example
var isNumber = Matis.tools.MatchRegexp('[0-9]+');