From eae058f47d5154ec7a84b4d2adbb74a6f3c8bb08 Mon Sep 17 00:00:00 2001 From: clsr Date: Sat, 30 May 2015 13:56:01 +0200 Subject: [PATCH] Clarify regexes in readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.)