Skip to content

Commit 0461fa8

Browse files
Update Documentation/Evolution/RegexSyntax.md
Co-authored-by: Nate Cook <natecook@apple.com>
1 parent b315dd0 commit 0461fa8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/Evolution/RegexSyntax.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ Anchor -> '^' | '$' | '\A' | '\b' | '\B' | '\G' | '\y' | '\Y' | '\z' | '\Z'
155155

156156
Anchors match against a certain position in the input rather than on a particular character of the input.
157157

158-
- `^`: Matches at the start of a line.
159-
- `$`: Matches at the end of a line.
158+
- `^`: Matches at the very start of the input string, or the start of a line when in multi-line mode.
159+
- `$`: Matches at the very end of the input string, or the end of a line when in multi-line mode.
160160
- `\A`: Matches at the very start of the input string.
161161
- `\Z`: Matches at the very end of the input string, in addition to before a newline at the very end of the input string.
162162
- `\z`: Like `\Z`, but only matches at the very end of the input string.

0 commit comments

Comments
 (0)