Regular Expressions 101

Community Patterns

Model Code validator

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 - a year ago