“Grel General Expression Class” Ответ

Grel General Expression Class

* metacharacters
* character escapes \
* anchors \A\Z or ^$
* character classes [][^]
* quantifiers *?+{min,max}
* grouping ()
* substitutions $1 or \1
Disgusted Dove

Grel General Expression Class

\d any digit
\D any non-digit
\w any word character [a-zA-Z0-9_]
\W any non-word char. [^a-zA-Z0-9_]
\s any whitespace char.
\S any non-whitespace char.
\t tab
\n newline
\r carriage return
Disgusted Dove

Grel General Expression Class

. any character (almost*) 
\ escape character
| or
\A or ^ anchor: start of string
\Z or $ anchor: end of string
[] list or range to be matched
[^] negative list or range (NOT these characters)
Disgusted Dove

Grel General Expression Class

\p{L} - letter
\p{P} - punctuation
\p{InBasicLatin} - in basic Latin Unicode block
\p{InArabic} - in Arabic Unicode block
Disgusted Dove

Ответы похожие на “Grel General Expression Class”

Вопросы похожие на “Grel General Expression Class”

Больше похожих ответов на “Grel General Expression Class” по JavaScript

Смотреть популярные ответы по языку

Смотреть другие языки программирования