You are here

public static function Zs::getRegularExpression in Search API 8

Returns a regular expression matching this character class.

Return value

string A PCRE regular expression.

Overrides UnicodeCharacterPropertyInterface::getRegularExpression

File

src/Plugin/search_api/processor/Resources/Zs.php, line 13

Class

Zs
Represents characters of the Unicode category "Zs" ("Separator, Space").

Namespace

Drupal\search_api\Plugin\search_api\processor\Resources

Code

public static function getRegularExpression() {

  // phpcs:disable
  return '\\x{0020}\\x{00A0}\\x{1680}\\x{2000}\\x{2001}\\x{2002}\\x{2003}' . '\\x{2004}\\x{2005}\\x{2006}\\x{2007}\\x{2008}\\x{2009}\\x{200A}' . '\\x{202F}\\x{205F}\\x{3000}';

  // phpcs:enable
}