问题
I created this regexp but finds only the first occurrence, where am I wrong?
$pattern = '/\\[h-imagegallery id=([0-9,]+)\\]/';
$subject = 'ueihui [h-imagegallery id=4,55] jwff [h-imagegallery id=425]';
print_r($matches);
the result is:
Array ( [0] => [h-imagegallery id=4,55] [1] => 4,55 )
来源:https://stackoverflow.com/questions/19236653/preg-match-all-find-only-the-firt-occurence