我用,test_([^/]+)但这只会忽略/角色。
test_([^/]+)
/
如果在之后的任何地方都找不到匹配项,我将不予匹配。/test_
test_
示例,我需要什么:
test_apple 火柴 apple
test_apple
apple
test_apple/ 没有匹配项。
test_apple/
test_ap/le 没有匹配项。
test_ap/le
我应该怎么做?谢谢!
怎么样: test_([^/]+)$
test_([^/]+)$
$表示直到字符串末尾
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
点击生成二维码
我来说两句