Regular Expressions 101

Community Patterns

number_lexer

0

Regular Expression
PCRE (PHP <7.3)

/
^(?<whole>[_\d]+)(?:(?<dot>\.)(?<dec>[_\d]+))?(?:(?<exp>[eE])(?<exp_sgn>[+-])?(?<exp_num>[_\d]+))
/
gm

Description

no description available

Submitted by anonymous - 4 years ago