JAVA中正则表达式元字符
来源:互联网 发布:白话翻译成普通话软件 编辑:程序博客网 时间:2024/05/17 16:45
Summary of regular-expression constructs
Character.MIN_CODE_POINT
<= 0xh...h <= Character.MAX_CODE_POINT
)\tThe tab character ('\u0009')\nThe newline (line feed) character ('\u000A')\rThe carriage-return character ('\u000D')\fThe form-feed character ('\u000C')\aThe alert (bell) character ('\u0007')\eThe escape character ('\u001B')\cxThe control character corresponding to x[abc]
a
, b
, or c
(simple class)[^abc]
Any character except a
, b
, or c
(negation)[a-zA-Z]
a
through z
or A
through Z
, inclusive (range)[a-d[m-p]]
a
through d
, or m
through p
: [a-dm-p]
(union)[a-z&&[def]]
d
, e
, or f
(intersection)[a-z&&[^bc]]
a
through z
, except for b
and c
: [ad-z]
(subtraction)[a-z&&[^m-p]]
a
through z
, and not m
through p
: [a-lq-z]
(subtraction)\p{Lower}
A lower-case alphabetic character: [a-z]
\p{Upper}
An upper-case alphabetic character:[A-Z]
\p{ASCII}
All ASCII:[\x00-\x7F]
\p{Alpha}
An alphabetic character:[\p{Lower}\p{Upper}]
\p{Digit}
A decimal digit: [0-9]
\p{Alnum}
An alphanumeric character:[\p{Alpha}\p{Digit}]
\p{Punct}
Punctuation: One of !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
\p{Graph}
A visible character: [\p{Alnum}\p{Punct}]
\p{Print}
A printable character: [\p{Graph}\x20]
\p{Blank}
A space or a tab: [ \t]
\p{Cntrl}
A control character: [\x00-\x1F\x7F]
\p{XDigit}
A hexadecimal digit: [0-9a-fA-F]
\p{Space}
A whitespace character: [ \t\n\x0B\f\r]
\p{IsLatin}
A Latin script character (script)\p{InGreek}
A character in the Greek block (block)\p{Lu}
An uppercase letter (category)\p{IsAlphabetic}
An alphabetic character (binary property)\p{Sc}
A currency symbol\P{InGreek}
Any character except one in the Greek block (negation)[\p{L}&&[^\p{Lu}]]
Any letter except an uppercase letter (subtraction)阅读全文
0 0
- JAVA中正则表达式元字符
- java正则表达式元字符
- 正则表达式--元字符
- 正则表达式--元字符
- 正则表达式元字符
- 正则表达式-元字符
- 正则表达式元字符
- 正则表达式元字符
- 正则表达式元字符
- 正则表达式元字符
- 正则表达式元字符
- 正则表达式-元字符
- 正则表达式元字符
- 正则表达式元字符
- 正则表达式(元字符)
- 正则表达式-元字符
- 正则表达式 - 元字符
- 正则表达式 - 元字符
- 【LeetCode】Container With Most Water 解题报告
- Android 自定义ViewGroup手把手教你实现ArcMenu
- 抽象工厂模式
- 在大学老师布置的一些题目,欢迎各位大佬指正(1)
- Linux系统中的磁盘加密,解密,配额及raid磁盘阵列和lvm
- JAVA中正则表达式元字符
- 编程中无穷大的设定
- 有关数据的操作
- 【python】工作方向总结
- 最近在论证一个问题,到底是先有鸡还是先有蛋:
- POJ2914 Minimum Cut 【全局最小割Stoer-Wagner模板题】
- codeforces 837A Text Volume
- TYVJ P4366 整数拆分
- 二叉树2——删除节点与求度,高度