Optionaltext: stringOptionalpattern: stringOptionalflags: stringThe text the pattern is applied to.
The regular expression, written as it would be between the slashes in JavaScript, such as
[0-9]+.
The regular expression flags: g for every match, i to ignore case, m for
line-by-line anchors, and s, u, y as in JavaScript.
A text and a regular expression for
text.regexTest,text.regexMatch,text.regexSearchandtext.regexSplit.