# RegexMatches

### **Description**‌

The RegexMatches function searches an input string for all occurrences of a regular expression and returns all the matches.

### **Syntax**

‌The syntax for the RegexMatch function is:

`RegexMatches(input, pattern)`

#### ‌**Parameters**

input - the string to check.

pattern - the pattern to match.

### **Returns**

‌The RegexMatches function returns the objects found by the search. If no matches are found, the method returns an empty collection object.
