$re = '/\bCourt\h+(?:Case\h+Fee|Filing Fee:)\h+(?:Contract\h+)?\$\K\d+\.\d+/mi';
$str = 'Court Case Fee $214.00 Payment Service Fee $6.91 E-File Fee $25.00
Court Filing Fee: Contract $198.00eFiling Fee $30.00Convenience Fee $8.28Total $236.28';
preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0);
// Print the entire match result
var_dump($matches);
Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for PHP, please visit: http://php.net/manual/en/ref.pcre.php