t***o 发帖数: 1353 | 1 硅工强人, 帮忙写个regular expression
$str = 'controller/today' will return today
$str = 'controller/today123' will return today123
$str = 'controller/crazy' will return crazy
$str = 'controller/about' will not return anything.
$str = 'controller/help' will not return anything.
basically if everything after "controller/" is NOT "about", "help","feedback
", return whatever it is.
if it is "help", "about", "service", do not return anything.
tried
?!^, ^?!, [^],
none of them works.
it has to be completed i... 阅读全帖 |
|