matches
matches()
Section titled “matches()”Category: String
Returns true if the input string matches the specified regular expression
Signature
Section titled “Signature”- Return type:
boolean - Parameters:
regexstring— Regular expression pattern
Examples
Section titled “Examples”'hello@example.com'.matches('[a-z]+@[a-z]+\.[a-z]+')Patient.telecom.value.matches('^\+1-[0-9]{3}-[0-9]{3}-[0-9]{4}$')