Solar_Filter_ValidateSepWords::validateSepWords()
Validates that the value is composed of one or more words separated by a single separator-character.
Parameters
(mixed)
$value
: The value to validate.(string)
$sep
: The word separator character(s), such as " -'" (to allow spaces, dashes, and apostrophes in the word). Default is ' '.
Returns
(bool) True if valid, false if not.
Description
Validates that the value is composed of one or more words separated by a single separator-character.
Word characters include a-z, A-Z, 0-9, and underscore, indicated by the regular expression "\w".
By default, the separator is a space, but you can include as many other separators as you like. Two separators in a row will fail validation.