I had been using the following regex for US Phone Number validation, but discovered it doesn’t work in IE7. I am aware of the lookahead issues, and was able to fix a password validation by moving the length question to the beginning, but can’t figure out how to adjust the phone number one:
/^(?:(?:(\s*\(?([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9])\s*)|([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9]))\)?\s*(?:[.-]\s*)?)([2-9]1[02-9]|[2-9][02-9]1|[2-9][02-9]{2})\s*(?:[.-]\s*)?([0-9]{4})$/
I believe you are looking for this regex: