Skip to main content

is_blank

Function is_blank 

Source
pub fn is_blank(value: &[u8]) -> bool
Expand description

preg_match('/[^\p{Z}\p{Cf}\s]/u', $value) !== 1: the value holds only Unicode separators, format characters and whitespace (nothing at all included), or is not UTF-8, which preg_match() refuses.

PHP: Text::isValid() with $requireNonBlank.