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 Test integer value
Expression
^\d{4,}$|^[3-9]\d{2}$|^2[5-9]\d$
Description
This particular expression tests an integer value to see if it's equal to or greater than 250. Obviously you can alter it to test other values. The first section passes all four-digit or greater integers. The second section passes all 3-digit integers greater than 300. The last section requires that three digit integers with "2" at their start must have 5 or greater for their second digit.
Matches
250, 251, 1000, 10000
Non-Matches
249, 250w, 250., 250.00
Author Rating: Not yet rated. Sam Moore
   Displaying page 1 of 1 pages; Items 1 to 1

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