Boundaries
In the following table, you can find the patterns for boundaries, which will tell the Regex what position to do the matching in.
Pattern |
Description |
Example |
---|---|---|
|
This matches the beginning of an input. If the multiline flag is set to true, it also matches immediately after the ( |
|
|
This matches the end of an input. If the multiline flag is set to true, it also matches immediately before the ( |
|
|
This matches any word boundary (test characters must exist at the beginning or at the end of a word within the string). |
|
|
This matches any non-word boundary. |
|