Lets say I have a large amount of (random) text. Within this text there is a phone number, consisting of three digits, a dash, another three digits, a dash, and four digits. For example, XXX-XXX-XXXX. What would be the regex for retrieving this number from the text. I tried using: