Returns an array of all matching values.
Returns Invalid expression
if no matches are found or the pattern is faulty.
RegExMatches(
pattern
,
text
)
RegExMatches("\\b\\w+es\\b", "There are matches in this line, but who writes these notes anyway?")
=> "matches, writes, notes"