Test, validate and match regular expressions
This regex matches two different phone number formats. The first format is a sequence of 10 consecutive digits. The second format is a phone number with the area code enclosed in parentheses, followed by a hyphen, 3 digits, another hyphen, and 4 digits (e.g., (123)-456-7890).