由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
SanFrancisco版 - 硅工强人, 帮忙写个regular expression
相关主题
Perl regular expression vs. Python regular expression大公司清闲硅工的一周
美国初二数学测试题,要跪了 (转载)一个普通人的命运可以相差有多大????
婚姻绿卡485材料要交收益人的tax return吗(130已批)数据说话
关于生物,硅工,金融...的一点说明 (转载)[合集] 湾区硅工一年挣15-20万税前的多么?
【8卦】和一个start-up老印manager的一段对话硅谷小道:发扬光大硅工的力量
★★硅工紧急求助:sudden hearing loss硅工也上春晚了
贫穷硅工问题, 电视天线安装问题各位老大行行好啊
强烈BS某同学羡慕护士的行为。地震云, 地震雨, 地震鱼, .....
相关话题的讨论汇总
话题: controller话题: return话题: str话题: expression话题: today123
进入SanFrancisco版参与讨论
1 (共1页)
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

1 (共1页)
进入SanFrancisco版参与讨论
相关主题
地震云, 地震雨, 地震鱼, .....【8卦】和一个start-up老印manager的一段对话
明年联邦税率有个跳跃?★★硅工紧急求助:sudden hearing loss
40多岁的软工硅工今后都是怎么打算的?贫穷硅工问题, 电视天线安装问题
给大家算一算医改后要多交多少tax强烈BS某同学羡慕护士的行为。
Perl regular expression vs. Python regular expression大公司清闲硅工的一周
美国初二数学测试题,要跪了 (转载)一个普通人的命运可以相差有多大????
婚姻绿卡485材料要交收益人的tax return吗(130已批)数据说话
关于生物,硅工,金融...的一点说明 (转载)[合集] 湾区硅工一年挣15-20万税前的多么?
相关话题的讨论汇总
话题: controller话题: return话题: str话题: expression话题: today123