t*o
2 楼
硅工强人, 帮忙写个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.
$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.
H*g
3 楼
【 以下文字转载自 Military 讨论区 】
发信人: MTAS (买买提头号人体艺术大湿), 信区: Military
标 题: Re: 我发明的无把儿剃刀
发信站: BBS 未名空间站 (Mon Jul 18 22:42:39 2016, 美东)
还是你了解叔!叔早就设计出了解放双手的撸管自行车!
http://www.mitbbs.com/article/Joke/33606157_3.html
发信人: MTAS (买买提头号人体艺术大湿), 信区: Military
标 题: Re: 我发明的无把儿剃刀
发信站: BBS 未名空间站 (Mon Jul 18 22:42:39 2016, 美东)
还是你了解叔!叔早就设计出了解放双手的撸管自行车!
http://www.mitbbs.com/article/Joke/33606157_3.html
o*o
4 楼
/controller\/((?!about$|help$|service$).*)/
feedback
【在 t***o 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: 硅工强人, 帮忙写个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
feedback
【在 t***o 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: 硅工强人, 帮忙写个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
H*g
5 楼
多巧啊。
t*o
6 楼
原来美女也可以这么强大。。。。
我还以为,秃头wsn才可以这么强大那。。。
feedback
【在 t***o 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: 硅工强人, 帮忙写个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
我还以为,秃头wsn才可以这么强大那。。。
feedback
【在 t***o 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: 硅工强人, 帮忙写个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
l*t
9 楼
军版有了
http://www.gjczz.com/p/jpPS8dGz/dan-ma-cheng-yi-zheng/
【在 H********g 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: 还是应该留给剃刀。剃刀是个好青年。不像你看了美女还不分享。
http://www.gjczz.com/p/jpPS8dGz/dan-ma-cheng-yi-zheng/
【在 H********g 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: 还是应该留给剃刀。剃刀是个好青年。不像你看了美女还不分享。
相关阅读