What im trying to do is, when a user enters in a phone number it looks at the first 3 digits, and depending on those first 3 digits, assigns a country code to it. What i have is in the example below assigns the UK country code. My question, What am i doing wrong? I can post more complete code if you like. var exp = /(070|071|072|073|074|075|076|077|078|079|08…