普通防爆pression使用C#.NET任意数量的整除60? [英] Regular Expression for any number divisible by 60 using C# .Net?
问题描述
我需要申请验证上采取的是秒输入时间间隔。我现在不是在普通的前pressions真的很好。因此,任何机构可以帮助进行一次普通的EX pression,它可以测试一个数是否整除60。
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.
我在想,如果我可以用它来测试一个检查的数量是被10整除,然后检查是否同样是整除6。
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.
有关数字被10整除这里[\ D * 0]是EX pression我猜。请纠正我,如果我错了。
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.
感谢
推荐答案
(+,/, - ,*)的正则表达式不能用作数学运算符。使用JavaScript来代替。
(+,/,-,*) in Regex are not used as mathematical operators. Use JavaScript instead.
这篇关于普通防爆pression使用C#.NET任意数量的整除60?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!