Regular Expressions 101

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^(iPhone|iPad|iPod|Watch)(\d{1,2}),(\d{1}).*$
/
gm

Description

Check the modelCode for iOS/iPadOS devices

Submitted by ppeelen - 2 years ago