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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find scientific notation
Expression
^[-+]??(\\d++[.]\\d*?|[.]\\d+?|\\d+(?=[eE]))([eE][-+]??\\d++)?$
Description
matche standard scientific notation
Matches
1.2, -1.2, +1.2, 12.34 - 12.34, +12.34, 12.3, -12.3, +12.3, 1.23, -1.23, +1.23, .1 - .1, +.1,1., -1., +1. , .45, -.45, +.45, 56., -56., +56.,2e3 - 2e3, +2e3,12e3, -12e3, +12e3,1e23, -1e23, +1e23,34e12, -34e12, +34e12,1.e2, -1.e2, +1.e2,34.e12, -34.e12, +34.e12,12.e3, -12.e3, +12.e3,3.e12, -3.e12, +3.e12,.1e2, -.1e2, +.1e2,.34e12, -.34e12, +.34e12,.12e3, -.12e3, +.12e3,.1e23, -.1e23, +.1e23,1.2e3, -1.2e3, +1.2e3,54.32e1, -54.32e1, +54.32e1,5.43e2, -5.43e2, +5.43e2,4.3e21, -4.3e21, +4.3e21
Non-Matches
1,1e1
Author Rating: Not yet rated. Wayne.Wang
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

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