Regex Problem

  • Thread starter Thread starter Roshawn Dawson
  • Start date Start date
R

Roshawn Dawson

Hi,

I'm trying to write a regular expression that simply tests if a number
is between 1 and 250.

Can anyone help this regex newbie?

Thanks,
Roshawn
 
1. May be it is not what you want, but Int32.Parse(yourstring)<250 and
Int32.Parse(yourstring)>1 would do the job :)
2. Your regex : ([2][0-5][0-9])|([1]{0,1}[0-9]{1,2})
 
Back
Top