*/ public function scan(string $content): array { $out = []; if (preg_match_all(self::REGEX_DOUBLE, $content, $m1) && ! empty($m1[1])) { $out = array_merge($out, $m1[1]); } if (preg_match_all(self::REGEX_SINGLE, $content, $m2) && ! empty($m2[1])) { $out = array_merge($out, $m2[1]); } return array_values(array_unique($out)); } }