Regular Expression for a number divisible by 100

Associate
Joined
12 Feb 2003
Posts
897
Hi

I need the regular expression to tell me if a value is divisible by 100. So it needs to check if the last 2 digits of a value are both zero's.

Does anybody know this off the top of their head? I'm not too up on regular expressions myself.

Any help would be appreciated

Jim :)
 
I would hope that you are checking to see that the value is NaN anyway, so surely you could check the value is NaN, assign it to a variable then do the modulus check?
 
Back
Top Bottom