Lines Matching refs:matches

1153             $string = preg_replace_callback('/%([^%]+)%/', function ($matches) use ($lang) {
1154 return isset($lang[$matches[1]]) ? $lang[$matches[1]] : '';
1181 if (preg_match('/^([a-zA-Z]+)=(.*)/', $value, $matches)) {
1182 $key = strtolower($matches[1]); // Extract the key (a-zA-Z part)
1185 $str .= $matches[2];
1200 $string = preg_replace_callback('/{([^}]+)}/', function ($matches) use ($options) {
1201 $key = strtolower($matches[1]);
1438 preg_match_all('/(<li[^>]*>.+?<\/li>)/', $html, $matches);
1439 if (count($matches) > 0 && count($matches[0]) > (($showLast * 2) + 2)) {
1440 $count = count($matches[0]);
1444 $list .= $matches[0][0] . $matches[0][1];
1448 $list .= $matches[0][$i];
1645 function ($matches) {
1648 $s = $matches[0];
1653 if (count($matches) > 1) {
1654 $e = explode(' ', $matches[1]);
1683 $s = str_replace('$1', $matches[1], $icon['insert']);
1884 preg_match('/id="([^"]*)"/', $match[0], $matches);
1953 if (preg_match('/[~-]~hero-subtitle (.+?)~[~-]/ui', $elm->innertext, $matches) === 1) {
1954 $subtitle = $matches[1];
1965 preg_match('/[~-]~hero-image (.+?)~[~-](?!.?")/ui', $elm->innertext, $matches);
1966 if (count($matches) > 0) {
1967 preg_match('/<img.*src="(.+?)"/ui', $matches[1], $imageTagMatches);
1971 preg_match('/<a.+?>(.+?)[~<]/ui', $matches[1], $imageTagMatches);
1975 $image = strip_tags($matches[1]);
1997 if (preg_match('/[~-]~hero-colors (.+?)~[~-]/ui', $elm->innertext, $matches) === 1) {
1998 $subtitle = $matches[1];
2008 if (preg_match('/[~-]~hide-parts (.+?)~[~-]/ui', $elm->innertext, $matches) === 1) {
2009 $parts = explode(' ', $matches[1]);