ChinaUnix.net
相关文章推荐:

邮箱正则表达式

boolean isMatch = mailAddress.matches("^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+!d"); 这么写无法匹配到 [email]aaa@qddd.com.cn[/email] 的地址啊 要能匹配到 .com ,.cn .com.cn的 谢谢了

by herrapfel - Java - 2011-03-08 15:49:13 阅读(3560) 回复(1)

相关讨论

要能判断 .com.cn 和 .com .cn 这种类型的 网上找的很多都不能 验证.com.cn 的 谢谢了

by herrapfel - Shell - 2011-03-08 15:51:33 阅读(8988) 回复(11)

我不敢说这样写完全没问题,但是它很好用,我也一直这么用了,又不对的地方请路过者纠正 谢谢 ?php if(!empty($_REQUEST["act"])) { checkmail(); } function checkmail() { $str = $_POST["mail"]; $check = preg_match("/^[a-zA-Z0-9\._-]+@[a-zA-Z0-9_-]+\.[a-zA-Z0-9_-]{2,4}$/",$str); if($check) echo "邮件地址正确"; else echo "邮件不正确!"; } ?> div width="500"> form action="emailcheck.php?ac...

by phpwzb - php文档中心 - 2009-08-20 01:22:59 阅读(1751) 回复(0)

小弟想通过正则把: <22>excel 吧<>里的22 和excel单独通过正则表达式匹配出来,求大牛帮看看

表达式

by 236848253 - Shell - 2016-05-11 13:56:08 阅读(876) 回复(2)

用ue的unix正则,发现不能同时(a|b|c),正则以前研究过不太常用就忘了,请问怎么同时多个或过滤

表达式

by shiqgnefu - C/C++ - 2015-04-28 19:12:06 阅读(1009) 回复(3)

本帖最后由 yshihyu 于 2014-10-06 19:37 编辑 [code]+12 -23 +23.456 -236.23 123.0 123 234352345[/code][0-9]+\.[0-9]+|\+\d+|\-\d+|\+[0-9]+\.[0-9]+|\d+ 我这样写好像也是有问题~ , 请问上面数据要怎么写出简洁的正则表达式 thanks

by yshihyu - Python - 2014-10-07 21:42:58 阅读(1508) 回复(3)

为什么A*=(0 U 1)*是正则的而B={0^n1^n | n>0} 却不是正则的? B不是A*的子集吗

by gongzilv - C/C++ - 2014-06-23 14:01:31 阅读(1726) 回复(2)

[root@linjianying ~]# cat shell welcome to iphonebar.net iphone belongs me [root@linjianying ~]# grep -E '+me' shell --color welcome to iphonebar.net me 疑问:+表示它前面的字符至少出现1次,为什么me还会被过滤出来呢?me前面没有字符的啊。

by zjlinjianying - Shell - 2013-12-05 09:04:31 阅读(2214) 回复(4)

本帖最后由 chenzhanyiczy 于 2013-10-31 15:59 编辑 man regex Within a bracket expression, a collating element (a character, a multi-character sequence that collates as if it were a single character, or a collating-sequence name for either) enclosed in "[." and ".]" stands for the sequence of characters of that collating element. The sequence is a single element of the brac...

by chenzhanyiczy - Shell - 2013-11-01 13:08:45 阅读(2432) 回复(4)

man regex Within a bracket expression, a collating element (a character, a multi-character sequence that collates as if it were a single character, or a collating-sequence name for either) enclosed in "[." and ".]" stands for the sequence of characters of that collating element. The sequence is a single element of the bracket expression’s list. A bracket expressio...

by chenzhanyiczy - C/C++ - 2013-11-01 10:06:07 阅读(2575) 回复(7)

正则表达式中的一些符号不是太理解,哪位有关于正则文档,小弟多谢了!:em27:

by LikeLx - Shell - 2013-10-11 17:03:57 阅读(3153) 回复(5)