Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 formcheck 检查 dd/mm/yyyy 格式的日期?
(\d){2}/(\d){2}/(\d){4}用于简单检查是否有 2 天数字等。
(\d){2}/(\d){2}/(\d){4}
但是,要更全面地检查它实际上是一个有效日期,请使用:
((([012](\d))|(3)[01])/((0[1-9])|((1)[012]))/((\d){4}))