classes-Com-Tecnick-Unicode-Data-Pattern

It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.

Pattern

in package

Com\Tecnick\Unicode\Data\Pattern

Tags
since
2011-05-23
category

Library

author

Nicola Asuni info@tecnick.com

copyright

2011-2024 Nicola Asuni - Tecnick.com LTD

license

http://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE.TXT)

link
https://github.com/tecnickcom/tc-lib-unicode-data

Table of Contents

Constants

ARABIC  = "/(\n \xd8[\x80-\x83\x8b\x8d\x9b\x9e\x9f\xa1-\xba] # AL\n | \xd9[\x80-\x8a\xad-\xaf\xb1-\xbf] # AL\n | \xda[\x80-\xbf] # AL\n | \xdb[\x80-\x95\x9d\xa5\xa6\xae\xaf\xba-\xbf] # AL\n | \xdc[\x80-\x8d\x90\x92-\xaf] # AL\n | \xdd[\x8d-\xad] # AL\n | \xde[\x80-\xa5\xb1] # AL\n | \xef\xad[\x90-\xbf] # AL\n | \xef\xae[\x80-\xb1] # AL\n | \xef\xaf[\x93-\xbf] # AL\n | \xef[\xb0-\xb3][\x80-\xbf] # AL\n | \xef\xb4[\x80-\xbd] # AL\n | \xef\xb5[\x90-\xbf] # AL\n | \xef\xb6[\x80-\x8f\x92-\xbf] # AL\n | \xef\xb7[\x80-\x87\xb0-\xbc] # AL\n | \xef\xb9[\xb0-\xb4\xb6-\xbf] # AL\n | \xef\xba[\x80-\xbf] # AL\n | \xef\xbb[\x80-\xbc] # AL\n | \xd9[\xa0-\xa9\xab\xac] # AN\n )/x"
Pattern to test Arabic strings using regular expressions.
RTL  = "/(\n ־ # R\n | \xd7[\x80\x83\x86\x90-\xaa\xb0-\xb4] # R\n | \xdf[\x80-\xaa\xb4\xb5\xba] # R\n | ‏ # R\n | \xef\xac[\x9d\x9f\xa0-\xa8\xaa-\xb6\xb8-\xbc\xbe] # R\n | \xef\xad[\x80\x81\x83\x84\x86-\x8f] # R\n | \xf0\x90\xa0[\x80-\x85\x88\x8a-\xb5\xb7\xb8\xbc\xbf] # R\n | \xf0\x90\xa4[\x80-\x99] # R\n | \xf0\x90\xa8[\x80\x90-\x93\x95-\x97\x99-\xb3] # R\n | \xf0\x90\xa9[\x80-\x87\x90-\x98] # R\n | \xe2\x80[\xab\xae] # RLE & RLO\n | ⁧ # RLI\n )/x"
Pattern to test RTL (Righ-To-Left) strings using regular expressions.

Constants

ARABIC

Pattern to test Arabic strings using regular expressions.

public mixed ARABIC = "/(\n \xd8[\x80-\x83\x8b\x8d\x9b\x9e\x9f\xa1-\xba] # AL\n | \xd9[\x80-\x8a\xad-\xaf\xb1-\xbf] # AL\n | \xda[\x80-\xbf] # AL\n | \xdb[\x80-\x95\x9d\xa5\xa6\xae\xaf\xba-\xbf] # AL\n | \xdc[\x80-\x8d\x90\x92-\xaf] # AL\n | \xdd[\x8d-\xad] # AL\n | \xde[\x80-\xa5\xb1] # AL\n | \xef\xad[\x90-\xbf] # AL\n | \xef\xae[\x80-\xb1] # AL\n | \xef\xaf[\x93-\xbf] # AL\n | \xef[\xb0-\xb3][\x80-\xbf] # AL\n | \xef\xb4[\x80-\xbd] # AL\n | \xef\xb5[\x90-\xbf] # AL\n | \xef\xb6[\x80-\x8f\x92-\xbf] # AL\n | \xef\xb7[\x80-\x87\xb0-\xbc] # AL\n | \xef\xb9[\xb0-\xb4\xb6-\xbf] # AL\n | \xef\xba[\x80-\xbf] # AL\n | \xef\xbb[\x80-\xbc] # AL\n | \xd9[\xa0-\xa9\xab\xac] # AN\n )/x"

Ref: http://www.w3.org/International/questions/qa-forms-utf-8

RTL

Pattern to test RTL (Righ-To-Left) strings using regular expressions.

public mixed RTL = "/(\n ־ # R\n | \xd7[\x80\x83\x86\x90-\xaa\xb0-\xb4] # R\n | \xdf[\x80-\xaa\xb4\xb5\xba] # R\n | ‏ # R\n | \xef\xac[\x9d\x9f\xa0-\xa8\xaa-\xb6\xb8-\xbc\xbe] # R\n | \xef\xad[\x80\x81\x83\x84\x86-\x8f] # R\n | \xf0\x90\xa0[\x80-\x85\x88\x8a-\xb5\xb7\xb8\xbc\xbf] # R\n | \xf0\x90\xa4[\x80-\x99] # R\n | \xf0\x90\xa8[\x80\x90-\x93\x95-\x97\x99-\xb3] # R\n | \xf0\x90\xa9[\x80-\x87\x90-\x98] # R\n | \xe2\x80[\xab\xae] # RLE & RLO\n | ⁧ # RLI\n )/x"

(excluding Arabic)

On this page
 

© 2004-2024 – Nicola Asuni - Tecnick.com - All rights reserved.
about - disclaimer - privacy