Regular Expression for any number divisible by 60 using C# .Net ?

Posted by Steve Johnson on Stack Overflow See other posts from Stack Overflow or by Steve Johnson
Published on 2010-03-12T04:45:30Z Indexed on 2010/03/12 4:47 UTC
Read the original article Hit count: 400

Filed under:
|
|
|

Hi there,

I need to apply validation on input time intervals that are taken in as seconds. Now i am not really good at Regular expressions. So can any body help making a regular expression that can test whether a number is divisible by 60.

I was wondering if i could use to test one that check that the number is divisible by 10 and then check whether the same is divisible by 6.

For number divisible by 10 here [\d*0] is the expression i guess. Please correct me if i am wrong.

Hope somebody solves my problem.

Thanks

© Stack Overflow or respective owner

Related posts about regex

Related posts about regular-language