Pattern

Regular expressions matching directional text.

Table of contents

Namespace: Com\Tecnick\Unicode\Data

class Pattern

Source: src/Pattern.php:38

Regular expressions matching directional text.

Generated by tools/generate.php from the Unicode Character Database 17.0.0. Do not edit manually.

Constants

ARABIC

Pattern matching the Arabic characters (Bidi_Class=AL and Bidi_Class=AN).

The subject string must be valid UTF-8.

public const ARABIC = '/[' . '\x{0600}-\x{0605}\x{0608}\x{060B}\x{060D}\x{061B}-\x{064A}\x{0660}-\x{0669}\x{066B}-\x{066F}' . '\x{0671}-\x{06D5}\x{06DD}\x{06E5}\x{06E6}\x{06EE}\x{06EF}\x{06FA}-\x{070D}\x{070F}\x{0710}' . '\x{0712}-\x{072F}\x{074D}-\x{07A5}\x{07B1}\x{0860}-\x{086A}\x{0870}-\x{0891}' . '\x{08A0}-\x{08C9}\x{08E2}\x{FB50}-\x{FBC2}\x{FBD3}-\x{FD3D}\x{FD50}-\x{FD8F}' . '\x{FD92}-\x{FDC7}\x{FDF0}-\x{FDFC}\x{F
// … truncated, see source

Source: src/Pattern.php:70

RTL

Pattern matching the strong right-to-left characters (Bidi_Class=R) and the right-to-left explicit formatting characters (RLE, RLO, RLI).

Arabic characters are matched by the ARABIC pattern instead. The subject string must be valid UTF-8.

public const RTL = '/[' . '\x{05BE}\x{05C0}\x{05C3}\x{05C6}\x{05D0}-\x{05EA}\x{05EF}-\x{05F4}\x{07C0}-\x{07EA}' . '\x{07F4}\x{07F5}\x{07FA}\x{07FE}-\x{0815}\x{081A}\x{0824}\x{0828}\x{0830}-\x{083E}' . '\x{0840}-\x{0858}\x{085E}\x{200F}\x{202B}\x{202E}\x{2067}\x{FB1D}\x{FB1F}-\x{FB28}' . '\x{FB2A}-\x{FB36}\x{FB38}-\x{FB3C}\x{FB3E}\x{FB40}\x{FB41}\x{FB43}\x{FB44}\x{FB46}-\x{FB4F}' . '\x{10800}-\x{10805}\x{10808}\x{108
// … truncated, see source

Source: src/Pattern.php:46