![]() ![]() Use \o for octal codepoints.Ī subroutine call matches an existing subpattern with the given name or offset at the current position. Warning: It is highly recommended that you do not use a backslash followed by digitsĪs it may be treated as an octal codepoint, anĮscaped backreference, or a literal number depending on the number and ![]() Quantifier may come after an escaped backreference to modify how many it must Tifinagh, Tirhuta, Ugaritic, Vai, Warang_Citi, YiĪ backreference matches an existing subresult of the most recent subpattern with the given name or offset. Syriac, Tagalog, Tagbanwa, Tai_Le, Tai_Tham, Tai_Viet, Takri, Tamil, Telugu, Thaana, Thai, Tibetan, Runic, Samaritan, Saurashtra, Sharada, Shavian, Siddham, Sinhala, Sora_Sompeng, Sundanese, Syloti_Nagri, Oriya, Osmanya, Pahawh_Hmong, Palmyrene, Pau_Cin_Hau, Phags_Pa, Phoenician, Psalter_Pahlavi, Rejang, Ogham, Ol_Chiki, Old_Italic, Old_North_Arabian, Old_Permic, Old_Persian, Old_South_Arabian, Old_Turkic, Meroitic_Cursive, Meroitic_Hieroglyphs, Miao, Modi, Mongolian, Mro, Myanmar, Nabataean, New_Tai_Lue, Nko, Lisu, Lycian, Lydian, Mahajani, Malayalam, Mandaic, Manichaean, Meetei_Mayek, Mende_Kikakui, ![]() Katakana, Kayah_Li, Kharoshthi, Khmer, Khojki, Khudawadi, Lao, Latin, Lepcha, Limbu, Linear_A, Linear_B, Imperial_Aramaic, Inherited, Inscriptional_Pahlavi, Inscriptional_Parthian, Javanese, Kaithi, Kannada, Glagolitic, Gothic, Grantha, Greek, Gujarati, Gurmukhi, Han, Hangul, Hanunoo, Hebrew, Hiragana, Match a character that does ( \p) or doesn't ( \P) belong to the character script:Īrabic, Armenian, Avestan, Balinese, Bamum, Bassa_Vah, Batak, Bengali, Bopomofo, Brahmi, Braille, Buginese,īuhid, Canadian_Aboriginal, Carian, Caucasian_Albanian, Chakma, Cham, Cherokee, Common, Coptic, Cuneiform,Ĭypriot, Cyrillic, Deseret, Devanagari, Duployan, Egyptian_Hieroglyphs, Elbasan, Ethiopic, Georgian, Match a character that either does ( \p) or doesn't ( \P) have the underlying Unicode note: In Unicode mode, the behavior of most of these escape sequences extend Sequence cannot appear within a character class. Quantifier cannot come after an escaped assertion sequence. Quantifier may come after an escape sequence appearing in a branch depending on theĪn escaped assertion sequence may appear within a branch. Additionally, they may appear within aĬharacter class depending on the escape sequence. Non-printing characters ( \a\b\c\e\f\n\o\r\t\x),Ĭharacter types ( \d\D\h\H\p\P\s\S\v\V\w\W but notĬharacter within a character class (same as \x08).Ī POSIX character class may appear within a character class.Īlnum same as alpha letters ascii ASCII codepoints 0 through 127 blank space or tab only cntrl control characters digit decimal digits (same as \d) graph same as lower lowercase letters print same as, except not any controls punct printing characters, excluding letters, digits, and space space whitespace (same as \s since v8.34) upper uppercase letters word "word" characters (same as \w) xdigit hexadecimal digit, same as escape sequenceĪn escape sequence may appear within a branch. LiteralĮscape sequence: valid escape sequences include Metacharacters have special meanings that may involve a sequence of one or more characters. An empty branch will automatically match.Ī branch contains metacharacters and literal characters (nonmetacharacters) that make up what to match. If none of the branches match, the pattern fails. Branches are tried from left to right until one of theīranches match. When there's two or moreīranches, this is known as alternation. The overall syntax of PCRE is the following:Ī pattern is one or more branches to try, each separated by a vertical bar. This document uses syntax diagrams to visually explain PCRE: Perl Compatible Regular Expressions
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |