正则如何匹配这样的路径

markfly
  • 3
新手上路,请多包涵

匹配如下路径
/data/flowlog/logs/20200707/batch_01.log
/data/flowlog/logs/20200708/batch_02.log
/data/flowlog/logs/20200709/batch_03.log
/data/flowlog/logs/20200709/batch_34152_4527.log

回复
阅读 992
2 个回答

\/data\/flowlog\/logs\/[\d]+\/batch_(.*)\.log

/^\/data\/flowlog\/logs\/20200709\/.*\.log$/
宣传栏