Format
regex(pattern, flags)regex(Regex)
Args
pattern: The pattern string to search forflags: (optional) A text string containing any combination of modifier flagsRegex: an existing /regex datum to copy
Calling new/regex() is the same as calling regex(). It will create a new /regex datum.