【发布时间】:2013-07-07 20:51:21
【问题描述】:
我试图仅在匹配准确时捕获字符串。
即有效:
/this-is-an-exact-matc
/this-is-also-an-exact-match
/this-is-other-exact-match?d=1
/balbabla
无效:
/this-is-not/fafa/fafa
/dede/ddd/dfsfd
/
您可以只将一个路径级别视为有效字符串。 我正在尝试:
\/(.*)
...但这也验证了像 /bbalbalb/blablba 这样的真实情况
谢谢
【问题讨论】: