修订版 | 192a4452688d43c4874c7ee355b945b6698b5dc5 (tree) |
---|---|
时间 | 2022-12-02 23:55:05 |
作者 | Erik <erikgronwal@user...> |
Commiter | Erik |
Regular updates
@@ -35,18 +35,20 @@ description: | | ||
35 | 35 | |
36 | 36 | ### Anchors |
37 | 37 | |
38 | -| Pattern | Description | | |
39 | -| ------- | ----------------------- | | |
40 | -| `\G` | Start of match | | |
41 | -| `^` | Start of string | | |
42 | -| `$` | End of string | | |
43 | -| `\A` | Start of string | | |
44 | -| `\Z` | End of string | | |
45 | -| `\z` | Absolute end of string | | |
46 | -| `\b` | A word boundry | | |
47 | -| `\B` | Non-word boundry | | |
48 | -| `^abc` | Start with `abc` | | |
49 | -| `abc$` | End with `abc` | | |
38 | +| Pattern | Description | | |
39 | +| ------- | ---------------------- | | |
40 | +| `\G` | Start of match | | |
41 | +| `^` | Start of string \* | | |
42 | +| `$` | End of string \* | | |
43 | +| `\A` | Start of string | | |
44 | +| `\Z` | End of string | | |
45 | +| `\z` | Absolute end of string | | |
46 | +| `\b` | A word boundry | | |
47 | +| `\B` | Non-word boundry | | |
48 | +| `^abc` | Start with `abc` | | |
49 | +| `abc$` | End with `abc` | | |
50 | + | |
51 | +For multiline patterns (`m` flag), `^` and `$` will act as start and end of line. | |
50 | 52 | |
51 | 53 | ### Escaped characters |
52 | 54 |