1. 正则表达式是一种字符串搜索和匹配的工具 2. php中常用正则表达式函数 preg_match($pattern, $subject) preg_match_all($pattern, $subject, array &$matches) preg_replace($pattern, $replacement, $subject) preg_filter($pattern, $replacement, $subject) preg_grep($pattern, array $input)…