I'm trying to validate a phone number in javascript with the following regex
var phoneExpression = /^\(?([0-9]{9})\)?$/;
this expression works with xxxxxxxxx number but i need a regex for xxxxxxxxx , +xx xxxxxxxxx and +x xxxxxxxxx and all i've tried fails.