Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(1{1}0{1}[.]0{1}[0{1}]?|[0-9]{1}[.][0-9]{1}[0-9{1}]?)
/

Description

Hello everyone,

With that regex expression, you can match the first grade with decimals on your string.

Submitted by anonymous - 6 years ago