regex_match
host callCapy
function regex_match(pattern : string, subject : string, flags : string = "") bool
Description
Use regex_match() to test a complete string. Use regex_search() to find text within a string.
Parameters
pattern : regular expression
subject : text to test
flags : regular expression flags
Return Values
true if the complete subject matches the pattern.
Example
Capy
print(regex_match("[a-z]+", "Capy", "i"), "\n")