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

Please support RegExLib Sponsors

Sponsors

Advanced Search

Keywords

Category

Minimum Rating

Results per Page

Search Results: 10 regular expressions found.

   Displaying page 1 of 1 pages; Items 1 to 10
Title Test Details Pattern Title
Expression
(?=([\W]*[\w][\W]*\b))\s(?=\d\.|\d\b)
Description
This RegExp matches a space (" ") character with lookahead condition if there is an ASCII text in front of it and it is followed by a single decimal number which in turn is followed by a dot or nothing. It's useful to seperate scientific notation numbers from a text, i.e. when classifying with the bow toolkit. [EDIT 18.09.2004] There was indeed an error in the second lookahead. Changed |\b to |\d\b
Matches
ROOT 4.873624764e-34 | `1234567 890-= 3.8765e-34543 | ~! @ # $ % ^ & ( % )_+ 3.345e-2384754
Non-Matches
rstuvwxyz 754.234e-23 | yz754.234e-23 | yz .234e-23
Author Rating: The rating for this expression. Benjamin J. J. Voigt
Title Test Details Pattern Title
Expression
\b-?[1-9](?:\.\d+)?[Ee][-+]?\d+\b
Description
Matches standard scientific notation using E character Scientific notation involves writing a number as the product of two numbers. The first one, the digit value, is always more than one and less than 10. The other, the exponential term, is expressed as a power of 10.
Matches
3.7E-11 | -2.384E-03 | 9.4608e15
Non-Matches
3.7 X 10-11 | -23.84E-02 | 9.4608 x 1015
Author Rating: Not yet rated. Michael Ash
Title Test Details Metric Measurement
Expression
(?<value>([\+-]?((\d*\.\d+)|\d+))(E[\+-]?\d+)?)( (?<prefix>[PTGMkmunpf])?(?<unit>[a-zA-Z]+)?)?
Description
Used for matching measurement expressions with or without scientific notation, with or without a list of known prefixes, and with an option component of a unit. Known limitations include that a measurement term cannot lack a prefix and also start with a letter that could be mistaken for a prefix. For instance, "5 m" is parsed as 5 with a prefix of m, not 5 with a base prefix and a unit of m.
Matches
1 uW, 1 mW, 1 W, 1 m, 1.5 W, .5 W, 5E-12 F, 5 nF
Non-Matches
mW, 5- mW, 5mW
Author Rating: Not yet rated. Sean Duggan
Title Test Details Real Float Number
Expression
[+-]?+(?>\d++\.?+\d*+|\d*+\.?+\d++)
Description
This regex is designed to fail fast (using possessive quantifiers) while still matching a floating decimal number all the time. Won't match scientific notation or fractions. Can be combined with other patterns. Note: This site's tester does not support them. If your language does not support possessive quantifiers try the following: (?>[+-]?)(?>(?>\d+)(?>\.?)(?>\d*)|(?>\d*)(?>\.?)(?>\d+))
Matches
+7 | -7.7 | .7 | 7. | etc
Non-Matches
1/7 | 7e10
Author Rating: The rating for this expression. Trinithis
Title Test Details Scientific Notation
Expression
^(\d)(\.)(\d)+\s(x)\s(10)(e|E|\^)(-)?(\d)+$
Description
Scientific notation from school as best as we can put it on textboxes/textareas.
Matches
2.99 x 10^33; 3.14159 x 10E5
Non-Matches
33.2 x 10^7; 0.180 X 10^6.3
Author Rating: Not yet rated. Mickael Caruso
Title Test Details Scientific Notation
Expression
[+-]?\d(\.\d+)?[Ee][+-]?\d+
Description
Matches a number using normalised scientific 'E' notation
Matches
-1.23E99 | 1E0 | -9.999e-999
Non-Matches
+10E0 | 2.3e5.4
Author Rating: The rating for this expression. Michael Dumas
Title Test Details Scientific Notation
Expression
^(-?[1-9](\.\d+)?)((\s?[X*]\s?10[E^]([+-]?\d+))|(E([+-]?\d+)))$
Description
Matches both normalized and E notations, with or without spaces or negative numbers. Make sure to use a case insensitive pattern matcher. Group 1 is the significand, and either group 5 or group 7 is the exponent (one or the other will be null, but never both).
Matches
1.1 x 10^9 | 2.34 X 10^12 | 3.14159 * 10^30 | 1.1x10^9 | 2.34X10^12 | 3.14159*10^30 | 1.1 x 10e9 | 2.34 x 10E12 | 3.14159e30 | 1.1 x 10^-9 | 2.34 X 10^-12 | 3.14159E-30 | -1.1 x 10^9 | -2.34 X 10E12 | -3.14159 * 10e30 | -1.1x10^-9 | -2.34E-12 | -3.14159e-30 | 3.1459E+030 | 1x10^9 | 1E9
Non-Matches
0.1 x 10^9 | 23.4 x 10^12 | 3.14159 * 10e^30 | 1.1e8.3
Author Rating: Not yet rated. Jared Cook
Title Test Details Decimal Number
Expression
^[+-]?\d*(([,.]\d{3})+)?([,.]\d+)?([eE][+-]?\d+)?$
Description
Matches any integer or decimal number with either dot (.) or comma (,) as decimal- and thousands-separator. Also accepts Scientific notation.
Matches
-4,233.2832e12 | +232 | -0.12e-5
Non-Matches
abc | @41 | 0x423
Author Rating: The rating for this expression. jteeuwen
Title Test Details 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
Title Test Details complex numbers
Expression
^[+|-]?[\i0-9\.]{0,}[+|-]?[\i0-9\.]{0,}$
Description
Check complex numbers syntax according to the forms reported in the matching examples list. Scientific notation is not supported (yet?)
Matches
1.0+i|i|2|i+2|i-1|0.122222i-0.2333|0.2|0.2i|-2-i|-1.0-i|-3.0+1i|-2.0+1.0i|3.0i-2.0i
Non-Matches
1.0E-10|-2-i0.999e-8
Author Rating: Not yet rated. Alessandro Rosa
   Displaying page 1 of 1 pages; Items 1 to 10

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