Regex is a predefined object that contains regular expressions related methods. All methods receive a 'pattern' string. This is the regular expression pattern.
Tests whether the given text is a match for the given pattern. The whole text should match the pattern. Use matcher to search for a substring that matches the pattern. Note that it will return False for empty strings.