Regular Expressions 101

Community Library

Community Library Entry

0

Regular ExpressionOpen Workspace

/
^\s*[-+]?(\d+\.?\d*|\d*\.?\d+)([eE][-+]?\d+)?\s*$
/
gm

Description
Created·2018-06-22 15:45
Type·Match
Flavor·JavaScript

Should be able to match a dot-separated decimal number (C-style)

Works with:

  • integers
  • floating-point
  • scientific notation
Submitted by Anonymous
Open Workspace