Tribe__Validate::address()
validates a field as being part of an address allows for letters, numbers, dashes and spaces only
Source
File: src/Tribe/Validate.php
public function address() {
$this->value = stripslashes( $this->value );
if ( preg_match( "/^[0-9\S '-]+$/", $this->value ) ) {
$this->result->valid = true;
} else {
$this->result->valid = false;
$this->result->error = sprintf( esc_html__( '%s must consist of letters, numbers, dashes, apostrophes, and spaces only.', 'tribe-common' ), $this->label );
}
}