diff --git a/docs/cpp2/metafunctions.md b/docs/cpp2/metafunctions.md
index b2d97ece1..e43665676 100644
--- a/docs/cpp2/metafunctions.md
+++ b/docs/cpp2/metafunctions.md
@@ -371,7 +371,7 @@ A `regex` type has data members that are regular expression objects. This metafu
name_matcher: @regex type
= {
regex := R"((\w+) (\w+))"; // for example: Margaret Hamilton
- regex_no_case := R"(/(ab)+/i)";
+ regex_no_case := R"(/(ab)+/i)"; // case insensitive match of `ab`
}
main: (args) = {
@@ -382,7 +382,7 @@ main: (args) = {
data = args[1];
}
- // regex.match requires matches to start at the beginning the target string
+ // regex.match requires matches to match the entire string, from start to end
result := m.regex.match(data);
if result.matched {
// We found a match; reverse the order of the substrings
@@ -406,7 +406,7 @@ The `@regex` metafunction currently supports most of [Perl regex syntax](https:/
Each regex object has the type `cpp2::regex::regular_expression`, which is defined in `include/cpp2regex.h2`. The member functions are:
``` cpp title="Member functions for regular expressions"
-// .match() requires matches to start at the beginning the target string
+// .match() requires matches to match the entire string, from start to end
// .search() finds a match anywhere within the target string
match : (this, str: std::string_view) -> search_return;
diff --git a/docs/notes/regex_status.md b/docs/notes/regex_status.md
index 14b44fa21..fa43c928a 100644
--- a/docs/notes/regex_status.md
+++ b/docs/notes/regex_status.md
@@ -27,7 +27,7 @@ The listings are taken from the [Perl regex docs](https://perldoc.perl.org/perlr
| **`\r`** | Return (CR) | Supported |
| **`\f`** | Form feed (FF) | Supported |
| **`\a`** | Alarm (bell) (BEL) | Supported |
-| **`\3`** | Escape (think troff) (ESC) | Supported |
+| **`\e`** | Escape (think troff) (ESC) | Supported |
| **`\x{}`, `\x00`** | Character whose ordinal is the given hexadecimal number | Supported |
| **`\o{}`, `\000`** | Character whose ordinal is the given octal number | Supported |