- 博客(1)
- 收藏
- 关注
转载 PHP正则:正向/反向预搜索
预搜索是一个非获取匹配,不进行存储供以后使用。 1、正向预搜索 "(?=xxxxx)","(?!xxxxx)" "(?=xxxxx)”:所在缝隙的右侧,必须能够匹配上 xxxxx 这部分的表达式, $str = 'windows NT windows 2003 windows xp'; preg_match('/windows (?=xp)/',$str,$res);
2016-03-04 17:25:14 2419
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人