【发布时间】:2012-07-21 15:58:20
【问题描述】:
如何比较这个字符串:
commodity/search/oil/branch/index
有了这个:
commodity/search/*/branch/index
虽然“油”被替换为其他词,但它应该返回 true。
【问题讨论】:
-
一些正则表达式怎么样?
-
试试用 / 代替逗号 stackoverflow.com/questions/9692914/…