首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >PHP 正则表达式

PHP 正则表达式

作者头像
康怀帅
发布2018-02-28 15:39:08
发布2018-02-28 15:39:08
2.4K0
举报
文章被收录于专栏:康怀帅的专栏康怀帅的专栏

本文主要介绍了 PHP 正则表达式相关的函数。

官方文档:http://php.net/manual/zh/ref.pcre.php

代码语言:javascript
复制
int preg_match($pattern, $subject, [ array &$matches ])

int preg_match_all($pattern, $subject, array &$matches)

返回匹配到结果的次数。

preg_replace($pattern, $replacement, $subject)

preg_filter($pattern, $replacement, $subject)

preg_grep($pattern, array $input)

preg_split($pattern, $subject)

preg_quote($str)

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2017-05-01,如有侵权请联系 cloudcommunity@tencent.com 删除
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档