 
      
      regex_match()Perform a regular expression match
regex_match(pattern, subject, case_sensitive = false)
pattern (string)  — Regex pattern to search for. The pattern follows the ECMAScript syntaxsubject (string)  — The target sequencecase_sensitive (boolean, optional)  — If case_sensitive is true then regex is performed with regard to case. The default value is false
boolean — Returns true if pattern is matched against subject, and returns false if otherwise
import regex
 
regex_match("\w+@\w+\.org", "faruq@dinfio.org")    ' Returns true
regex_match("\w+@\w+\.org", "faruq@example.com")   ' Returns false