标签: java regex string
我如何匹配第一个字符串?
e.g。
txt:now>=2017-03-07-00&now<=2017-04-05-00
now>=2017-03-07-00&now<=2017-04-05-00
模式".*?now>=(.*)-00"
".*?now>=(.*)-00"
给了我:2017-03-07-00&now<=2017-04-05
2017-03-07-00&now<=2017-04-05
代替:2017-03-07
2017-03-07