PHP学习笔记--php教科书上关于正则表达式实例代码(摘要)_PHP教程
程序员文章站
2022-06-06 13:56:15
...
= '^[$][[:alpha:]_][[:alnum:]]*'(,'$_name',);
();
= 'tm' = 'hello,tm,Tm,tM'=(,'TM',);
= 'is' = 'This is a register book.' = (,);
(
= '/\d{3,4}-?\d{7,8}/' = ('043212345678','0431-7654321','12345678');
= (,(
= 'This is an example!' = '/\b\w{2}\b/' = (,,);
."
"( "
"
= (,, ."
"(
= '!、$、^、*、+、.、[、]、\\、/、b、'='b'
= (,
= '[b]粗体字[/b]'
= ('/\[b\](.*)\[\/b\]/i','$1',
c_back(
= "[1]>[2]" = '[color=blue]字体蓝色[/color]'
('/\[color=(.*)\](.*)\[\/color\]/U',"c_back",
= "/\s+/";
= "I'm Chinese! I can eat" = (,);
(?>
上一篇: 风起的时候
下一篇: 2013年中国云计算发展态势