I need a simple script who should normalize phone numbers written in different ways to an E164 standard number.
I need to send to the function the following:
rawnumber (Es. 3568458)
Country (es. Italy > +39 area code)
City (es. Rome > 06 local code)
and it should give me back +39063568458
normalize(0039063568458,'Italy','Rome') >>> +39063568458
normalize(063568458,'Italy','Rome') >>> +39063568458
normalize(Mario:3568458,'Italy','06') >>> +39063568458
normalize(0039063568458,'+39','06') >>> +39063568458
normalize(0039 06 356 8458,'Italy','Rome') >>> +39063568458
normalize(+39-06-3568458,'Italy','06') >>> +39063568458
normalize(06-356 8458,'+39','06') >>> +39063568458
You can refer to this project to undestand better what are my needs:
[url removed, login to view]
It actually works only on linux.
I need also the function format, split and plausible as described in that project.
What I'm requesting do a little bit more than this project, but there you will find all data to reach the target.
It should work on windows environment and exactly on ASP or VBscript code.