preg_match('~\$\(\'\.em-add-to-card\'\)\.mouseup\(function\(\)\{\s*window\.dataLayer\.push\((\{.*?\})\);~s', $html, $m);
$r = json_decode($m[1]);
var_dump($r->ecommerce->add);
RewriteCond %{REQUEST_URI} !^/admin
RewriteCond %{REQUEST_URI} !^/public(?:$|/)
RewriteRule ^([a-z\d]+)(?:/([\w./]*))?$
RewriteRule ^(.*)$ / [L]
RewriteRule ^([^.]+)$ /proxy/browse.php [L]
надо в корневую папку /
RewriteCond %{QUERY_STRING} ^(page=\d+)/
RewriteRule ^razdel($|/).* /$0?%1 [R=301,L]
[0-9]({1,}
Контекст: server, location
https://regex101.com/r/4mFbbs/1/
preg_replace('/ (мм|см|лт)\K\./', '*', $str);