mirror of https://tildegit.org/ben/sedbot
Clarify regexes in readme
parent
7d1e520f04
commit
eae058f47d
|
@ -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.)
|
||||||
|
|
Loading…
Reference in New Issue