Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^[\+\-]?((\d+)|(\d+\.\d+)|(\.\d+)|(\d+\.))(e[\+\-]?\d+)?$
/
iy

Description

After this validation, you can safely put string to System.Double.Parse and System.Single.Parse functions.

Submitted by Sergey Voronkov - 7 years ago