我想在.XML文件中解析时间表达式hh:mm:ss.xxx(小时,分钟,秒,毫秒)。它应该是这个样子的是:解析hh:mm:ss [.xxx]
<condition property="illegal-tc"> <matches pattern="the_pattern" string="${timeCode}"/> </condition>
我需要的是模式\ d {2}的否定:\ d {2}:\ d {2} \ d {3}。
我尝试通过执行^ [\ d {2}:\ d {2}:\ d {2}。\ d {3}] $,但它无法正常工作。