Test() Vs Exec()

A small test to analyse the performance of two similar but different functions.

The first Test(): Executes the search for a match between a regular expression and a specified string.
Returns true or false.

The second Exec(): Used to retrieve the matches when matching a string against a regular expression.
Returns an array with the matches or null if there are none.