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 in one regular expression. | o*o 发帖数: 5155 | 2 /controller\/((?!about$|help$|service$).*)/
feedback
【在 t***o 的大作中提到】 : 硅工强人, 帮忙写个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
| t***o 发帖数: 1353 | 3 原来美女也可以这么强大。。。。
我还以为,秃头wsn才可以这么强大那。。。
feedback
【在 t***o 的大作中提到】 : 硅工强人, 帮忙写个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
|
|