Phone number regex javascript. var re = /^[\+]?[(]?[0-9]{3}[)]?[-\s\.