Community Patterns

Community Library Entry

2

Regular Expression
Created·2021-07-08 10:19
Flavor·ECMAScript (JavaScript)

/
[+-]?(\d*\.\d+|\d+\.\d*|\d+)
/
gm
Open regex in editor

Description

this regex can detect any real number whether it is signed or unsigned.plus it can detect real number both with and without floating point aka '.'.the numbers should be decimal number

Submitted by Adnan nabib