Lines Matching refs:matches
737 preg_match_all($pattern, $versionData, $matches);
740 foreach ($matches[0] as $match) {
1277 $string = preg_replace_callback('/%([^%]+)%/', static function ($matches) use ($lang) {
1278 return $lang[$matches[1]] ?? '';
1305 if (preg_match('/^([a-zA-Z]+)=(.*)/', $value, $matches)) {
1306 $key = strtolower($matches[1]); // Extract the key (a-zA-Z part)
1309 $str .= $matches[2];
1324 … $string = preg_replace_callback('/{([^}]+)}/', static function ($matches) use ($options) {
1325 $key = strtolower($matches[1]);
1564 preg_match_all('/(<li[^>]*>.+?<\/li>)/', $html, $matches);
1565 if (count($matches) > 0 && count($matches[0]) > (($showLast * 2) + 2)) {
1566 $count = count($matches[0]);
1570 $list .= $matches[0][0] . $matches[0][1];
1574 $list .= $matches[0][$i];
1792 function ($matches) {
1795 $s = $matches[0];
1800 if (count($matches) > 1) {
1801 $e = explode(' ', $matches[1]);
1830 $s = str_replace('$1', $matches[1], $icon['insert']);
2097 if (preg_match('/[~-]~hero-subtitle (.+?)~[~-]/ui', $elm->innertext, $matches) === 1) {
2098 $subtitle = $matches[1];
2108 preg_match('/[~-]~hero-image (.+?)~[~-](?!.?")/ui', $elm->innertext, $matches);
2109 if (count($matches) > 0) {
2110 preg_match('/<img.*src="(.+?)"/ui', $matches[1], $imageTagMatches);
2114 preg_match('/<a.+?>(.+?)[~<]/ui', $matches[1], $imageTagMatches);
2118 $image = strip_tags($matches[1]);
2140 if (preg_match('/[~-]~hero-colors (.+?)~[~-]/ui', $elm->innertext, $matches) === 1) {
2141 $subtitle = $matches[1];
2151 if (preg_match('/[~-]~hide-parts (.+?)~[~-]/ui', $elm->innertext, $matches) === 1) {
2152 $parts = explode(' ', $matches[1]);