You are here

function fapi_validation_validator_alpha_dash in Form API Validation 8

1 string reference to 'fapi_validation_validator_alpha_dash'
fapi_validation_fapi_validation_validators in src/fapi_validators/fapi_validators.inc
Implementation of hook_fapi_validation_validators

File

src/fapi_validators/fapi_validators.inc, line 114

Code

function fapi_validation_validator_alpha_dash($value) {
  return (bool) preg_match('/^[-\\pL\\pN_]+$/uD', (string) $value);
}