📜  边界匹配器示例

📅  最后修改于: 2020-11-14 10:21:05             🧑  作者: Mango


以下是在Java中使用正则表达式的边界匹配器的各种示例。

Sr.No Construct & Matches
1 ^

The beginning of a line.

2 $

The end of a line.

3 \b

A word boundary.

4 \B

A non-word boundary.

5 \A

The beginning of the input.

6 \G

The end of the previous match.

7 \Z

The end of the input but for the final terminator, if any.

8 \z

The end of the input.