On this page
apply_filters( 'wp_spaces_regexp', string $spaces )
Filters the regexp for common whitespace characters.
Description
This string is substituted for the \s sequence as needed in regular expressions. For websites not written in English, different characters may represent whitespace. For websites not encoded in UTF-8, the 0xC2 0xA0 sequence may not be in use.
Parameters
$spacesstring-
Regexp pattern for matching common whitespace characters.
Source
File: wp-includes/formatting.php. View all references
$spaces = apply_filters( 'wp_spaces_regexp', '[\r\n\t ]|\xC2\xA0| ' );
Related
Used By
| Used By | Description |
|---|---|
| wp_spaces_regexp() wp-includes/formatting.php | Returns the regexp for common whitespace characters. |
Changelog
| Version | Description |
|---|---|
| 4.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_spaces_regexp