English 中文(简体)
Java Regex - Boundary Matchers
  • 时间:2024-12-22

Examples of Boundary Matchers


Previous Page Next Page  

Following are various examples of Boundary Matchers using regular expression in java.

Sr.No Construct & Matches
1 ^

The beginning of a pne.

2 $

The end of a pne.

3 

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 

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

8 z

The end of the input.

Advertisements