I have a string like this : +33123456789 (french phone number). I want to extract the country code (+33) without knowing the country. For example, it should work if i have a
Use a try catch block like below:
try { const phoneNumber = this.phoneUtil.parseAndKeepRawInput(value, this.countryCode); }catch(e){}