首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

learn-preg

preg_match_all — Perform a global regular expression match

Description[dɪˈskrɪpʃən]

描述,说明

intpreg_match_all(string,string[,array[,int=[,int= 0]]] )

Perform a global regular expression match

执行一个全局正则表达式匹配

1、perform

常用意思是表演,这里是“执行”的意思,IT行业一般都是执行什么命令等。

2、global regular expression

//全局正则表达式

3、match

常用意思有“比赛”,比如:

a football match//一场足球比赛

在我们IT行业基本上都是“匹配”的意思,最常用到地方就是匹配正则表达式

Searchessubjectfor all matches to the regular expression given inpatternand puts them inmatchesin the order specified byflags.

搜索subject中所有匹配pattern给定正则表达式 的匹配结果并且将它们以flag指定顺序输出到matches中.

1、match to

本意是把....和....相搭配,在IT行业,只有后面跟了 regular expression,看到 match 就是匹配的意思

2、put sth in sth

//把.....放入.....里面

3、in the order

//按顺序

4、specified

//指定,详细说明,是 specify 的过去分词

Array of all matches in multi-dimensional array ordered according toflags.

多维数组,作为输出参数输出所有匹配结果, 数组排序通过flags指定

multi-dimensional array//多维数组

one-dimensional array//一维数组

  • 发表于:
  • 原文链接http://kuaibao.qq.com/s/20180512G027J700?refer=cp_1026
  • 腾讯「腾讯云开发者社区」是腾讯内容开放平台帐号(企鹅号)传播渠道之一,根据《腾讯内容开放平台服务协议》转载发布内容。
  • 如有侵权,请联系 cloudcommunity@tencent.com 删除。

扫码

添加站长 进交流群

领取专属 10元无门槛券

私享最新 技术干货

扫码加入开发者社群
领券