public static function Pd::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/ Pd.php, line 13
Class
- Pd
- Represents characters of the Unicode category "Pd" ("Punctuation, Dash").
Namespace
Drupal\search_api\Plugin\search_api\processor\ResourcesCode
public static function getRegularExpression() {
// phpcs:disable
return '\\x{002D}\\x{058A}\\x{05BE}\\x{1400}\\x{1806}\\x{2010}\\x{2011}' . '\\x{2012}\\x{2013}\\x{2014}\\x{2015}\\x{2E17}\\x{2E1A}\\x{2E3A}' . '\\x{2E3B}\\x{301C}\\x{3030}\\x{30A0}\\x{FE31}\\x{FE32}\\x{FE58}' . '\\x{FE63}\\x{FF0D}';
// phpcs:enable
}