当前位置:Gxlcms > PHP教程 > 求正则表达式啊难啊该怎么解决

求正则表达式啊难啊该怎么解决

时间:2021-07-01 10:21:17 帮助过:6人阅读

求正则表达式啊。难啊

$content = ' [1]
2
3
Last';
$a = preg_match_all('/a href([\S])*/is', $content, $matches);
print_r($matches);

各位大牛,请问有什么办法,可以用正则表达式,把pgno里面的数组搞出来吗
超链接 href最后那个&
跪求。


------解决方案--------------------


$content = ' [1]
------解决方案--------------------
136337^0^752&GetProducts=1&SelectedAttributes=33111116327
------解决方案--------------------
741&PRL=1_232.22%257e588.14%257e%2524232.22%2b%2b-%2b%2b%2524588.14%2b(369)_2_588.69%257e729.2%257e%2524588.69%2b%2b-%2b%2b%2524729.20%2b(371)_3_729.99%257e879.64%257e%2524729.99%2b%2b-%2b%2b%2524879.64%2b(372)_4_880.85%257e1078.2467%257e%2524880.85%2b%2b-%2b%2b%25241%252c078.25%2b(369)_5_1079%257e1342.88%257e%25241%252c079.00%2b%2b-%2b%2b%25241%252c342.88%2b(370)_6_1343.28%257e1623.3%257e%25241%252c343.28%2b%2b-%2b%2b%25241%252c623.30%2b(369)_7_1623.66%257e1824.59%257e%25241%252c623.66%2b%2b-%2b%2b%25241%252c824.59%2b(369)_8_1825.2%257e2140.7%257e%25241%252c825.20%2b%2b-%2b%2b%25242%252c140.70%2b(369)_9_2142.24%257e2609.81%257e%25242%252c142.24%2b%2b-%2b%2b%25242%252c609.81%2b(370)_10_2613.21%257e31877.92%257e%25242%252c613.21%2b%2b-%2b%2b%252431%252c877.92%2b(349)&pgno=2>2

人气教程排行