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.
我正在尝试制作一个仅接受数字并具有 01-12-22 模式的文本框,请帮助我获取正则表达式模式。
我认为应该是正则表达式模式^\d{2}(-\d{2}){2}$。我在Rubular测试了它,它似乎工作。
^\d{2}(-\d{2}){2}$