Matching country phone codes

Report a typo

Country phone codes are a component of the international telephone numbering plan and are necessary only when dialing a telephone number to establish a call to another country. Country codes are dialed before the national telephone number. By convention, international telephone numbers are represented by prefixing the country code with a plus sign (+).

Here is a regular expression that represents a pattern for some country phone codes:

val regex = "\\+3[4567][1-9]".toRegex()

Which of the following phone codes match the pattern?

Select one or more options from the list
___

Create a free account to access the full topic