正则表达式字符集

POSIX Description ASCII Unicode Shorthand Java
[:alnum:] Alphanumeric characters [azAZ09] [\p{L}\p{Nl}
 
\p{Nd}]
\p{Alnum}
[:alpha:] Alphabetic characters [azAZ] \p{L}\p{Nl} \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 [09] \p{Nd} \d \p{Digit}
[:graph:] Visible characters (anything except spaces and control characters) [\x21\x7E] [^\p{Z}\p{C}] \p{Graph}
[:lower:] Lowercase letters [az] \p{Ll} \l \p{Lower}
[:print:] Visible characters and spaces (anything except control characters) [\x20\x7E] \P{C} \p{Print}
[:punct:] Punctuation and symbols. [!”\#$%&'()*+,
\-./:;<=>?@\[
\\\]^_`{|}~]
\p{P} \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 [AZ] \p{Lu} \u \p{Upper}
[:word:] Word characters (letters, numbers and underscores) [AZaz09_] [\p{L}\p{Nl}
 
\p{Nd}\p{Pc}]
\w
[:xdigit:] Hexadecimal digits [AFaf09] [AFaf09] \p{XDigit}

原创文章,作者:N27_what,如若转载,请注明出处:http://www.178linux.com/79453

(0)
N27_whatN27_what
上一篇 2017-07-07 01:56
下一篇 2017-07-08 08:33

相关推荐

  • Linux用户管理相关(2)

    Q1:复制/etc/skel目录为/home/tuser1,要求/home/tuser1及其内部文件的属组和其他用户均没有任何访问权限。 [root@CentOS7_2 home]# cp -r /etc/skel/ /home/tuser1 [root@CentOS7_2 home]# …

    Linux干货 2016-11-16
  • 第一周作业

    – 描述计算机的组成及其功能。 – 按系列罗列Linux的发行版,并描述不同发行版之间的联系与区别。 – 描述Linux的哲学思想,并按照自己的理解对其进行解释性描述。 – 说明Linux系统上命令的使用格式;详细介绍ifconfig、echo、tty、startx、export、pwd、history、shu…

    Linux干货 2016-12-04
  • shell脚本编程基础之二(if、case、for、while、until、continue、break语句使用)

    在shell脚本编程中,我们可以根据命令的状态结果,判断要不要执行下一步,但是有时候要判断的问题不止一个,甚至对问题本身都要做判断;同时问题的结果有时也不止一个,这时要借助简单的逻辑与和逻辑或,就显得很无力;要完成复杂的任务,需要借助一定的流程控制:顺序执行、选择执行、循环执行、同时在脚本执行过程中,有用户交互输入的需; if语句 case语句 for语句 …

    Linux干货 2016-08-21
  • nginx配置(一)

    Nginx:http协议:web服务器(类似于httpd)、http reverse proxy(类似于httpd)、imap/pop3 reverse proxy NGINX is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/…

    Linux干货 2017-05-05
  • 磁盘管理详解

    linux系统如何识别硬盘 硬盘类型:        按接口可划分为        并行             &nb…

    Linux干货 2016-08-29
  • 文本处理-三剑客-grep

    文本过滤
    grep [OPTIONS] PATTERN [FILE…]

    2018-03-16