正規表現チェック
<?php
$value = 'mysqlerror test `1a` dayo `1b`';
$matches = null;
preg_match('/mysqlerror test `(\D+)` dayo `(\D+)`/', $value, $matches);
print_r($matches);
INFO
<?php
$value = 'mysqlerror test `1a` dayo `1b`';
$matches = null;
preg_match('/mysqlerror test `(\D+)` dayo `(\D+)`/', $value, $matches);
print_r($matches);