我的url看起来像:
http://www.example.com/blah/prod/4/x/blah.html
现在如果这个页面有子页面,它看起来像:
http://www.example.com/blah/prod/4_2343/x/blah.html
也就是说,在/prod/4之后会有一个下划线,而不是另一个数字。在
同样,如果此页面有子页面,它将是:
http://www.example.com/blah/prod/4_2343_234/x/blah.html
我需要把我放的所有文字都拿出来???以下:
/生产/???????/十/废话.html在
我该怎么做?在
比如这样。匹配模式prod/???/x/blah,在哪里???是由数字和下划线组成的任何字符串:
相关问题 更多 >
编程相关推荐