You are here

public static function Pc::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/Pc.php, line 13

Class

Pc
Represents characters of the category "Pc" ("Punctuation, Connector").

Namespace

Drupal\search_api\Plugin\search_api\processor\Resources

Code

public static function getRegularExpression() {

  // phpcs:disable
  return '\\x{005F}\\x{203F}\\x{2040}\\x{2054}\\x{FE33}\\x{FE34}\\x{FE4D}' . '\\x{FE4E}\\x{FE4F}\\x{FF3F}';

  // phpcs:enable
}