Regular Expressions 101

Community Patterns

Float representation

0

Regular Expression
Python

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

Description

Loading markdown...
Submitted by anonymous - 4 years ago