Supported in: Batch, Streaming
Normalizes phone numbers to a common format, parsing them from various regions and formats. Phone numbers containing the + sign followed by the region code will be parsed correctly even if the region is not set. All other number formats require a region to be selected from the options provided in order for them to be correctly parsed. Phone numbers that cannot be parsed will result in nulls.
Expression categories: String
Output type: Phone Number
Description: Should return parsed number in the E164 with digits only format. Argument values:
E164_DIGITS_ONLY
US
Output: 14155552671
Description: Should return parsed number in the E164 format. Argument values:
E164
US
Output: +14155552671
Description: Should return parsed number in the the INTERNATIONAL format. Argument values:
INTERNATIONAL
US
Output: +1 415-555-2671
Description: Should return parsed number in the the NATIONAL format. Argument values:
NATIONAL
US
Output: (415) 555-2671
Description: Should return parsed number in the the RFC3966 format. Argument values:
RFC3966
US
Output: tel:+1-415-555-2671
Description: Return formatted US phone number Argument values:
phoneNumber
E164
US
phoneNumber | Output |
---|---|
(234) 235-5678 | +12342355678 |
+1 415 5552671 | +14155552671 |
(415) 5552671 | +14155552671 |
Whatsapp@14155552671 | +14155552671 |
Description: If the phone number is un-parsable, the returned result is null Argument values:
phoneNumber
E164
phoneNumber | Output |
---|---|
null | null |
9991-COMPANY | null |
empty string | null |
Description: Phone numbers that contained the + sign and region code will be parsed to that specific region format even if the region is not set. Phone numbers that are missing the region coderequire a region to be selected from the dropdown in order for them to be correctly parsed. In this example the region code was not set, therefore numbers from the first, third, forth and fifth rows were not parsed correctly. Argument values:
phoneNumber
E164
phoneNumber | Output |
---|---|
(234) 235-5678 | null |
+1 415 5551111 | +14155551111 |
1 415 555 1111 | null |
+1 411 1111111 | null |
+34 91 23 45678 | +34912345678 |
Whatsapp@34912345678 | null |
Description: All phone numbers containing a country code were correctly parsed, as well as the phone numbers from the region selected have been parsed correctly. The phone numbers not matching the region selected were not parsed, as they were also invalid (too short or too long phone numbers). Argument values:
phoneNumber
E164
US
phoneNumber | Output |
---|---|
(234) 235-5678 | +12342355678 |
+1 415 5551111 | +14155551111 |
1 415 555 1111 | +14155551111 |
+1 411 1111111 | null |
+447945120071 | +447945120071 |
07945120071 | null |
not_a_phone_number | null |
Whatsapp@+34912345678 | +34912345678 |