模式语法
preg_grep
PCRE
PHP 手册
PCRE 函数
Table of Contents
preg_grep
— 返回与模式匹配的数组单元
preg_last_error
— Returns the error code of the last PCRE regex execution
preg_match_all
— 进行全局正则表达式匹配
preg_match
— 进行正则表达式匹配
preg_quote
— 转义正则表达式字符
preg_replace_callback
— 用回调函数执行正则表达式的搜索和替换
preg_replace
— 执行正则表达式的搜索和替换
preg_split
— 用正则表达式分割字符串
模式语法
preg_grep
PCRE
PHP 手册