由买买提看人间百态

topics

全部话题 - 话题: today123
(共0页)
t***o
发帖数: 1353
1
来自主题: SanFrancisco版 - 硅工强人, 帮忙写个regular expression
硅工强人, 帮忙写个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... 阅读全帖
(共0页)