protected function _filter_alnum($value) { /** @noinspection NotOptimalRegularExpressionsInspection */ if (preg_match('#^[a-zA-Z0-9]+$#', $value) === 1) { return $value; } else { return null; } }