18 public function validate($string, $config, $context)
20 $string = trim($string);
26 if ($parent_result !==
false) {
27 return $parent_result;
30 $length = strlen($string);
31 $last_char = $string[$length - 1];
33 if ($last_char !==
'*') {
37 $int = substr($string, 0, $length - 1);
42 if (!is_numeric($int)) {
56 return ((
string)$int) .
'*';