diff --git a/README.md b/README.md index 93b95e9..214328d 100644 --- a/README.md +++ b/README.md @@ -23,4 +23,4 @@ Example usage in chat: s/[a-e]//g s/\(.\)\(.\)/\2\1 gfhi -Note that the bot uses the standard grep (POSIX) regular expressions, i.e. use `.\+` and `\(foo\)\?` instead of `.+` and `(foo)?` as you'd do in egrep or other regex engines. +Note that the bot uses the standard grep (POSIX) regular expressions, i.e. use `.\+` and `\(foo\)\?` instead of `.+` and `(foo)?` as you'd do in egrep or other regex engines. Backreferences are written like `s/\(.\)/\1`, where `\1` matches the first capturing group. [Read more about sed regular expressions](https://www.gnu.org/software/sed/manual/html_node/Regular-Expressions.html.)