0

我创建了这个正则表达式,但只找到第一次出现,我错在哪里?

$pattern = '/\\[h-imagegallery id=([0-9,]+)\\]/';
$subject = 'ueihui [h-imagegallery id=4,55] jwff [h-imagegallery id=425]';    

print_r($matches);

结果是:

数组([0] => [h-imagegallery id=4,55] [1] => 4,55)

4

0 回答 0