作者 lyh

hx

... ... @@ -35,7 +35,7 @@ class TestController extends BaseController
$pattern = '/<img\s+[^>]*src=["\']([^"\']+)["\']/i';
$matches = [];
// Use preg_match_all to find all src attributes
preg_match_all($pattern, $inputString, $matches);
preg_match_all($pattern, $test, $matches);
// Return an array of all src URLs found
return $matches[1];
... ...