3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-23 12:29:26 +01:00

readme for regex [#154]

This commit is contained in:
reality 2013-01-21 20:38:16 +00:00
parent ed1b4bf717
commit 9ac8d3fd29
2 changed files with 23 additions and 1 deletions

21
modules/regex/README.md Normal file
View File

@ -0,0 +1,21 @@
## Regex
Apply regex and that.
### Description
Allows you to run regex replaces on both your own and others messages. One may
run a regex on their own last message like so:
> user: I like turtles
> user: s/turtles/pizza/
One may run a regex on another user's last message simple by hilighting the nick
before the pattern:
> batman: I like TURTLES
> user: batman: s/turtles/pizza/i
Note: As this is JS regex, the second part of the regex is actually just a
string and therefore some regex features aren't available (such as lookaheads).
On a related note, the regex flags available for use are limited to i and g.

View File

@ -1,3 +1,4 @@
{
"ignorable": true
"ignorable": true,
"help": "http://github.com/reality/depressionbot/blob/master/modules/regex/README.md"
}