Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
^[-+.]?\d(.*[\da-zA-Z])?$
"
gm

Description

starts with number and ends with string or number

  • starts with +ve, -ve or decimal number
Submitted by suraj - 3 years ago