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 3
Title Test Details match float with Exponent and f sign
Expression
[\+-]?(([0-9]*\.[0-9]+|[0-9]+\.[0-9]*)([Ee][\+-]?[0-9]+)?[Ff]?|[0-9]+[Ff])
Description
match a float number with Exponent sign and f sign
Matches
2.0 | 0.3 | -.4 | 3.f | 2.4E-2f | 0.4E4f
Non-Matches
2 | 234 | .f
Author Rating: Not yet rated. Mocchapine
Title Test Details integer match
Expression
[\+-]?([0-9]([0-9_]*[0-9])?|0[xX][0-9a-fA-F]([0-9a-fA-F_]*[0-9a-fA-F])?|0_*[0-7]([0-7_]*[0-7])?|0[bB][01]([01_]*[01])?)[lL]?
Description
match integer in decimal, hexadec, octal, and binary form
Matches
120 | 0xAFF | 0b1001_1111 | 20L
Non-Matches
100101 | 2.0f | 2.3E3
Author Rating: Not yet rated. Mocchapine
Title Test Details matches of programming language operator
Expression
(<<=|>>=|&&=|(\|\|=)|<<|>>(\+=)|-=|(\*=)|(\/=)|%=|&=|(\^=)|(\|=)|<=|>=|==|!=|&&|(\|\|)|(\+\+)|--|>|<|\^|&|(\|)|\*|\/|%|\+|-|~|=)
Description
matches almost all programming language operator
Matches
++ | <= | >>=
Non-Matches
identifier | 2000 | 0xFFF
Author Rating: Not yet rated. Mocchapine
   Displaying page 1 of 1 pages; Items 1 to 3

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