Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
((?:\d*\.\d+)|(?:\d|[1-9]\d+))(?:[fF])
/
g

Description

matches floats: 1.0f 1.0F .0f .1F 1f 1F

Submitted by Mateusz Paluch - 9 years ago