First make sure what you want. For example, a regex for the last is:
/\d{9}/
So it could be extended to allow space/dashes in place 4 or 8:
/\d{3}[ -]?\d{3}[ -]?\d{3}/
Then, to match also a plus, two digits and a space/dash in front you need something like:
/(\+?\d{2}[ -]?)?\d{3}[ -]?\d{3}[ -]?\d{3}/
pritaeas
Posting Expert
5,483 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875