延迟费用编号是任何整数,日期将始终采用该格式。
提前致谢。
答案 0 :(得分:2)
late fee \d+ on \d{2}\/\d{2}\/\d{4}
我总是试着http://regexper.com/
答案 1 :(得分:1)
如果您想分别获取月,日和年:
"^Late Fee (\d+) on (\d\d)/(\d\d)/(\d\d)$"
如果您只想将日期作为一个整体来选择:
"^Late Fee (\d+) on (\d\d/\d\d/\d\d)$"
答案 2 :(得分:1)
Late Fee \d+ on (0?[1-9]|1[0-2])/(0?[1-9]|[12][0-9]|3[01])/(19|20)\d\d
答案 3 :(得分:1)
如果月份和日期可以是1或2位数,请尝试:
Late Fee \d+ on \d{1,2}\/\d{1,2}\/\d{4}