RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details IEEE float
Expression
[-+]?((\.[0-9]+|[0-9]+\.[0-9]+)([eE][-+][0-9]+)?|[0-9]+)
Description
Used in my SVG parser. Explanation: May start with + or -. This is followed by either an integer, or a float ("dot numbers", "numbers dot numbers" or "numbers dot" followed by an optional scientific postfix (+ or - followed by numbers) ) I'm using it to parse lists of floats, add ^$ boundaries if you want it to match whole lines.
Matches
10.2 | .0 | 3.9265e+2 | 5
Non-Matches
-one | . | whatever
Author Rating: The rating for this expression. Gaz Davidson
   Displaying page 1 of 1 pages; Items 1 to 1

Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials