PHP学习笔记--php教科书上关于正则表达式实例代码(摘要)
程序员文章站
2022-06-01 14:37:23
...
= '^[$][[: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" = (,);
(?>
下一篇: PHP 图片上传实现代码 带详细注释