Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^[0-3](\.[0-9]{1,2})?$|^4(\.[0]{1,2})?$
/
g

Description

Grade Point Average (GPA)

Submitted by Pascal Heus - 7 years ago