Regular Expressions 101

Community Patterns

1...34567...902

Community Library Entry

0

Regular Expression
Python

r"
^( ([+-]?\d+\.?\d*)| # 1{{.}1} ([+-]?\.\d+)| # .1 ([+-]?(\d*\.)?\d+[eE][-+]?\d+)| # {1{.}}1e1 ([+-]?\d+\.[eE][-+]?\d+) # 1.e1 )$
"
mx

Description

All float representations that can be consumed by strtod() (string to double function in c)

Compatible with flex/bison

Submitted by anonymous - 5 years ago