OSDN Git Service

Regular updates
authorErik <erikgronwal@users.osdn.me>
Fri, 2 Dec 2022 14:55:05 +0000 (23:55 +0900)
committerErik <erikgronwal@users.osdn.me>
Fri, 2 Dec 2022 14:55:05 +0000 (23:55 +0900)
regexp.md

index 30bcd8a..212bf48 100644 (file)
--- a/regexp.md
+++ b/regexp.md
@@ -35,18 +35,20 @@ description: |
 
 ### Anchors
 
-| Pattern | Description             |
-| ------- | ----------------------- |
-| `\G`    | Start of match          |
-| `^`     | Start of string         |
-| `$`     | End of string           |
-| `\A`    | Start of string         |
-| `\Z`    | End of string           |
-| `\z`    | Absolute end of string  |
-| `\b`    | A word boundry          |
-| `\B`    | Non-word boundry        |
-| `^abc`  | Start with `abc`        |
-| `abc$`  | End with `abc`          |
+| Pattern | Description            |
+| ------- | ---------------------- |
+| `\G`    | Start of match         |
+| `^`     | Start of string \*     |
+| `$`     | End of string \*       |
+| `\A`    | Start of string        |
+| `\Z`    | End of string          |
+| `\z`    | Absolute end of string |
+| `\b`    | A word boundry         |
+| `\B`    | Non-word boundry       |
+| `^abc`  | Start with `abc`       |
+| `abc$`  | End with `abc`         |
+
+For multiline patterns (`m` flag), `^` and `$` will act as start and end of line.
 
 ### Escaped characters