$subject = '<div class="title">%TITLE%</div><div class="block">%TEXT%</div>';
$pattern = '/%(.*?)%/';
preg_match($pattern, $subject, $matches);
print_r($matches);
/%([\w]*?)%/
$q = insert_into( "users", [
"name" => "Jack",
"age" => "22"
]);
// $q = INSERT INTO `users` (`name`, `age`) VALUES ('Jack', '22')