Parameters
- pattern
- The regular expression pattern to match.
- rowStart
- Index of the row where the search should start.
- col
- Column that contains the data to be searched.
- wrap
- Whether the search should stop at the bottom of the grid or wrap around and restart from the first scrollable row.
Return Value
The index of the row that matches the pattern, or -1 if no matches were found.