We are developing an eCommerce platform and would require a valid phone number. Now dealing with UK, USA and other international countries.
what we are finding difficult is allowing the UK variants along with the USA variants. We have found many expressions for USA format but these dont work with the format.
We need to allow both internal UK aswell as the eternal +44 prefix along with the USA formats and any other international (mainly europe) formats.
We are considering just removing any ()+- characters and validating the rest to be numeric between 7 and 15, unless there is an all encompassing regular expression