Regular Expressions 101

Community Patterns

C floating-point constant

0

Regular Expression
PCRE2 (PHP >=7.3)

/
([+-]?\d+.)?|.(\d+)?[Ee]?[+-]?\d+[fFlF]?
/
gm

Description

The regular expression matches if the provided input is a regular expression matching the C floating-point constant or not.

Submitted by anonymous - 2 years ago