Javaregex 简明教程
Java Regex - Examples Matching Characters
以下是使用 Java 中的正则表达式匹配字符的各种示例。
Sr.No |
Construct & Matches |
1 |
xThe character x |
2 |
link:../javaregex/javaregex_characters_backslash.html[\\]The backslash character |
3 |
\0n 具有八进制值 0n(0 ≤ n ≤ 7)的字符 |
4 |
\0nn 具有八进制值 0nn(0 ≤ n ≤ 7)的字符 |
5 |
\0mnn 具有八进制值 0mnn(0 ≤ m ≤ 3, 0 ≤ n ≤ 7)的字符 |
6 |
\xhh 具有十六进制值 0xhh 的字符 |
7 |
\uhhhh 具有十六进制值 0xhhhh 的字符 |
8 |
\tThe tab character ('\u0009') |
9 |
\n 换行(换行符)字符 ('\u000A') |
10 |
\rThe carriage-return character ('\u000D') |
11 |
\fThe form-feed character ('\u000C') |