Lines Matching refs:matches

1137             $string = preg_replace_callback('/%([^%]+)%/', function ($matches) use ($lang) {
1138 return isset($lang[$matches[1]]) ? $lang[$matches[1]] : '';
1165 if (preg_match('/^([a-zA-Z]+)=(.*)/', $value, $matches)) {
1166 $key = strtolower($matches[1]); // Extract the key (a-zA-Z part)
1169 $str .= $matches[2];
1184 $string = preg_replace_callback('/{([^}]+)}/', function ($matches) use ($options) {
1185 $key = strtolower($matches[1]);
1422 preg_match_all('/(<li[^>]*>.+?<\/li>)/', $html, $matches);
1423 if (count($matches) > 0 && count($matches[0]) > (($showLast * 2) + 2)) {
1424 $count = count($matches[0]);
1428 $list .= $matches[0][0] . $matches[0][1];
1432 $list .= $matches[0][$i];
1623 function ($matches) {
1626 $s = $matches[0];
1631 if (count($matches) > 1) {
1632 $e = explode(' ', $matches[1]);
1661 $s = str_replace('$1', $matches[1], $icon['insert']);
1862 preg_match('/id="([^"]*)"/', $match[0], $matches);
1931 if (preg_match('/[~-]~hero-subtitle (.+?)~[~-]/ui', $elm->innertext, $matches) === 1) {
1932 $subtitle = $matches[1];
1943 preg_match('/[~-]~hero-image (.+?)~[~-](?!.?")/ui', $elm->innertext, $matches);
1944 if (count($matches) > 0) {
1945 preg_match('/<img.*src="(.+?)"/ui', $matches[1], $imageTagMatches);
1949 preg_match('/<a.+?>(.+?)[~<]/ui', $matches[1], $imageTagMatches);
1953 $image = strip_tags($matches[1]);
1975 if (preg_match('/[~-]~hero-colors (.+?)~[~-]/ui', $elm->innertext, $matches) === 1) {
1976 $subtitle = $matches[1];
1986 if (preg_match('/[~-]~hide-parts (.+?)~[~-]/ui', $elm->innertext, $matches) === 1) {
1987 $parts = explode(' ', $matches[1]);