正则表达式 [:graph:] 含义

Posted jordandan

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了正则表达式 [:graph:] 含义相关的知识,希望对你有一定的参考价值。

[:graph:]

代表printable and visible的字符,是除空格符(空格键与[TAB]键)之外的所有按键,

控制字符不算[:graph:]

 

https://www.regular-expressions.info/posixbrackets.html

 

 

POSIXDescriptionASCIIUnicodeShorthandJava
[:alnum:] Alphanumeric characters [a-zA-Z0-9] [\pL&\pNd]   \pAlnum
[:alpha:] Alphabetic characters [a-zA-Z] \pL&   \pAlpha
[:ascii:] ASCII characters [\x00-\x7F] \pInBasicLatin   \pASCII
[:blank:] Space and tab [ \t] [\pZs\t] \h \pBlank
[:cntrl:] Control characters [\x00-\x1F\x7F] \pCc   \pCntrl
[:digit:] Digits [0-9] \pNd \d \pDigit
[:graph:] Visible characters (i.e. anything except spaces, control characters, etc.) [\x21-\x7E] [^\pZ\pC]   \pGraph
[:lower:] Lowercase letters [a-z] \pLl   \pLower
[:print:] Visible characters and spaces (i.e. anything except control characters, etc.) [\x20-\x7E] \PC   \pPrint
[:punct:] Punctuation and symbols. [!"#$%&‘()*+,
 \-./:;<=>[email protected]
 [\\\]^_`|~]
[\pP\pS]   \pPunct
[:space:] All whitespace characters, including line breaks [ \t\r\n\v\f] [\pZ\t\r\n\v\f] \s \pSpace
[:upper:] Uppercase letters [A-Z] \pLu   \pUpper
[:word:] Word characters (letters, numbers and underscores) [A-Za-z0-9_] [\pL\pN\pPc] \w  
[:xdigit:] Hexadecimal digits [A-Fa-f0-9] [A-Fa-f0-9]   \pXDigit

以上是关于正则表达式 [:graph:] 含义的主要内容,如果未能解决你的问题,请参考以下文章

正则表达式的字符含义

正则表达式中+的含义是啥?

正则表达式中 + 的含义是啥?

刨根究底正则表达式之二——正则表达式基础

正则表达式字符含义

/gi 在正则表达式中的含义是啥? [复制]