wp_spaces_regexp


wp_spaces_regexp ( No parameters )

Returns:
  • (string) The spaces regexp.
Defined at:

Description

Returns the regexp for common whitespace characters.

By default, spaces include new lines, tabs, nbsp entities, and the UTF-8 nbsp. This is designed to replace the PCRE \s sequence. In ticket #22692, that sequence was found to be unreliable due to random inclusion of the A0 byte.

Related Functions

wp_cache_reset, wp_safe_remote_get, wp_cache_get, wp_safe_redirect, wp_safe_remote_post

Top Google Results

User discussions

wpseek mobile