Tribe__Validate::alpha_numeric_multi_line()
validates a field as a string containing only letters, numbers and carriage returns
Source
File: src/Tribe/Validate.php
public function alpha_numeric_multi_line() {
if ( preg_match( '/^[a-zA-Z0-9\s]+$/', $this->value ) ) {
$this->result->valid = true;
$this->value = tribe_multi_line_remove_empty_lines( $this->value );
} else {
$this->result->valid = false;
$this->result->error = sprintf( esc_html__( '%s must contain numbers and letters only', 'tribe-common' ), $this->label );
}
}