Regular Expressions 101

Community Patterns

Community Library Entry

2

Regular Expression
PCRE (PHP <7.3)

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

Description

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

Submitted by anonymous - 10 years ago