extract us phone number regex code example Example: Extract phone number from text regex \(?\b[2-9][0-9]{2}\)?[-. ]?[2-9][0-9]{2}[-. ]?[0-9]{4}\b