There are zillions of ways to recognize a telephone number, but none of them is universal. It all depends on whether you are willing to accept false positive or false negative matches, and how much you know about the various formatting possibilities.