需要验证表达式 [英] Require Validation Expression
本文介绍了需要验证表达式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请给我
的验证表达式
(任何Intiger/当前年份)或
(任何Intiger/2010)
例如:157/2010
在\ d +/2010上工作正常,但在---
上工作不正常
\ d +/DateTime.Now.Year
Please give me the Validation Expression for
(Any Intiger/Current Year) or
(Any Intiger/2010)
Ex: 157/2010
Working fine for \d+/2010 but Not for ---
\d+/DateTime.Now.Year
推荐答案
\d+/2010
你要这个吗?
用DateTime.Now.Year
\d+/2010
Do you want this?
Replace the current year in the string withDateTime.Now.Year
这篇关于需要验证表达式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文