Regular Expressions 101

Community Patterns

Country calling codes

2

Regular Expression
PCRE (PHP <7.3)

/
^(.+?)\t([-\d, ]+)\t(.+?) .+$
/
gm

Description

Parses countries list from https://countrycode.org/

Submitted by anonymous - 9 years ago