Text: Phone Validator
Validate and format a phone number using libphonenumber. Emits the
re-formatted number on phone and the detected ISO country code (e.g.
"FR") on country. Invalid or unparseable numbers fail the step.
Example
Country code: "FR", Mode: International
Input: "0676171166" → phone: "+33 6 76 17 11 66", country: "FR"
Mode: E164
Input: "+33676171166" → phone: "+33676171166", country: "FR"
Parameters
Country code
Default ISO country code (e.g. FR) used to disambiguate inputs without a
+ country prefix. Leave empty to require the input to already include a
country code.
Mode—REQUIRED
How the parsed number is re-emitted: - Raw — echo the original input
untouched. - E164 — +33676171166. - International — +33 6 76 17 11 66. - National — 06 76 17 11 66. - Rfc3966 —
tel:+33-6-76-17-11-66.
Input
Phone—REQUIRED
The phone number to validate.
Output
Phone
The re-formatted phone number per Mode.
Country
The detected ISO country code (e.g. FR).