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.
我正在尝试为这个字符串做一个正则表达式:
这是我的正则表达式,但不正确:
^(\d+)\.(\d+)\.(\d+)-(\[a-z]*)-(TEST)$
谢谢你的帮助 :)
console.log(/^(\d+)\.(\d+)\.(\d+)-([a-z0-9]*)-(TEST)$/.test("1.0.0-toto1-TEST"));