PHP学习笔记--php教科书上关于正则表达式实例代码(摘要)_PHP教程
程序员文章站
2022-06-01 14:33:53
...
= '^[$][[: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" = (,);
(?>
上一篇: 54个提高PHP程序运行效率的方法
下一篇: 关于CI的一个有关问题