diff --git a/doc/Attic/regex_replace.html b/doc/Attic/regex_replace.html
index 8ae8bb01..fd0392eb 100644
--- a/doc/Attic/regex_replace.html
+++ b/doc/Attic/regex_replace.html
@@ -203,8 +203,8 @@ boost::regex e1, e2;
return 0;
}
-extern const char* pre_expression = "(<)|(>)|\\r";
-extern const char* pre_format = "(?1<)(?2>)";
+extern const char* pre_expression = "(<)|(>)|(&)|\\r";
+extern const char* pre_format = "(?1<)(?2>)(?3&)";
const char* expression_text = // preprocessor directives: index 1
diff --git a/doc/regex_replace.html b/doc/regex_replace.html
index 8ae8bb01..fd0392eb 100644
--- a/doc/regex_replace.html
+++ b/doc/regex_replace.html
@@ -203,8 +203,8 @@ boost::regex e1, e2;
return 0;
}
-extern const char* pre_expression = "(<)|(>)|\\r";
-extern const char* pre_format = "(?1<)(?2>)";
+extern const char* pre_expression = "(<)|(>)|(&)|\\r";
+extern const char* pre_format = "(?1<)(?2>)(?3&)";
const char* expression_text = // preprocessor directives: index 1
diff --git a/example/snippets/regex_replace_example.cpp b/example/snippets/regex_replace_example.cpp
index 75f44eda..69ca40ed 100644
--- a/example/snippets/regex_replace_example.cpp
+++ b/example/snippets/regex_replace_example.cpp
@@ -86,8 +86,8 @@ int main(int argc, const char** argv)
return 0;
}
-extern const char* pre_expression = "(<)|(>)|\\r";
-extern const char* pre_format = "(?1<)(?2>)";
+extern const char* pre_expression = "(<)|(>)|(&)|\\r";
+extern const char* pre_format = "(?1<)(?2>)(?3&)";
const char* expression_text = // preprocessor directives: index 1