Clarify regexes in readme

pull/3/head
clsr 2015-05-30 13:56:01 +02:00
parent 7d1e520f04
commit eae058f47d
1 changed files with 1 additions and 1 deletions

View File

@ -23,4 +23,4 @@ Example usage in chat:
<foo> s/[a-e]//g s/\(.\)\(.\)/\2\1 <foo> s/[a-e]//g s/\(.\)\(.\)/\2\1
<sedbot> <foo> gfhi <sedbot> <foo> 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.)