Regular Expressions 101

Community Patterns

starts with number and ends with string or number

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 - 2 years ago