Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RegEx 1

Status
Not open for further replies.

lisalis99

Programmer
Jan 9, 2005
121
US
Hi,

How do I show a range of 90-100, I got the 70-79 by doing:

[7-7][0-9], but i'm stuck on this one for some reason...

Thanks,
Lis
 
Hi

Regular expressions are for string processing, so they are not suitable for numeric value checking.

Maybe this ( while you did not mentioned language, this is just generic format ) :
Code:
/1?[09][0-9]/

Feherke.
 
Extended Regular Expression:
(9[0-9]|100)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thanks, i'm actually using Linux shell scripting if that makes a difference...

 
Perfecto PHV, Thanks, it worked! Most appreciated!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top