正则表达式 [:graph:] 含义
2024-10-09 04:01:49
[:graph:]
代表printable and visible
的字符,是除空格符(空格键与[TAB]键)之外的所有按键
,
控制字符不算[:graph:]
https://www.regular-expressions.info/posixbrackets.html
POSIX | Description | ASCII | Unicode | Shorthand | Java |
---|---|---|---|---|---|
[:alnum:] | Alphanumeric characters | [a-zA-Z0-9] | [\p{L&}\p{Nd}] | \p{Alnum} | |
[:alpha:] | Alphabetic characters | [a-zA-Z] | \p{L&} | \p{Alpha} | |
[:ascii:] | ASCII characters | [\x00-\x7F] | \p{InBasicLatin} | \p{ASCII} | |
[:blank:] | Space and tab | [ \t] | [\p{Zs}\t] | \h | \p{Blank} |
[:cntrl:] | Control characters | [\x00-\x1F\x7F] | \p{Cc} | \p{Cntrl} | |
[:digit:] | Digits | [0-9] | \p{Nd} | \d | \p{Digit} |
[:graph:] | Visible characters (i.e. anything except spaces, control characters, etc.) | [\x21-\x7E] | [^\p{Z}\p{C}] | \p{Graph} | |
[:lower:] | Lowercase letters | [a-z] | \p{Ll} | \p{Lower} | |
[:print:] | Visible characters and spaces (i.e. anything except control characters, etc.) | [\x20-\x7E] | \P{C} | \p{Print} | |
[:punct:] | Punctuation and symbols. | [!"#$%&'()*+, \-./:;<=>?@ [\\\]^_`{|}~] |
[\p{P}\p{S}] | \p{Punct} | |
[:space:] | All whitespace characters, including line breaks | [ \t\r\n\v\f] | [\p{Z}\t\r\n\v\f] | \s | \p{Space} |
[:upper:] | Uppercase letters | [A-Z] | \p{Lu} | \p{Upper} | |
[:word:] | Word characters (letters, numbers and underscores) | [A-Za-z0-9_] | [\p{L}\p{N}\p{Pc}] | \w | |
[:xdigit:] | Hexadecimal digits | [A-Fa-f0-9] | [A-Fa-f0-9] | \p{XDigit} |
最新文章
- 【原】让H5页面适配移动设备全家 - 设计师篇 - PPT
- 【BZOJ3122】【SDoi2013】随机数生成器
- aehyok.com的成长之路二——技术选型
- 一个3D的多人在线游戏, 服务端 + 客户端 【转】
- dataguard 日志传输服务
- Jquery 简单的Tab选项卡特效
- Python学习笔记整理(五)Python中的列表.
- 物理DG主备库切换时遇到ORA-16139: media recovery required错误
- GPS坐标互转:WGS-84(GPS)、GCJ-02(Google地图)、BD-09(百度地图)[转]
- css之line-height
- RUN vs CMD vs ENTRYPOINT - 每天5分钟玩转 Docker 容器技术(17)
- Markdown常用语法对应
- dentry path_lookat dput
- 09 Zabbix4.0系统clone、mass update使用
- Halcon例程detect_indent_fft学习
- linux学习笔记-3.文件相关命令
- Cmder 设置默认打开目录、解决中文乱码
- MYSQL-max_binlog_cache_size参数
- 【JavaScript算法】---快速排序法
- 查找系统中jdk的位置