3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-26 20:52:39 +01:00
dbot/modules/regex
RCTrapdoor 71bda91639 Update regex.js
Enable users to correct other users suffixing usernames with either comma or colon.
2014-06-19 14:21:54 +02:00
..
config.json Build help link automatically [#439] 2013-05-17 07:34:25 +00:00
README.md readme for regex [#154] 2013-01-21 20:38:16 +00:00
regex.js Update regex.js 2014-06-19 14:21:54 +02:00

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 users 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 arent available (such as lookaheads). On a related note, the regex flags available for use are limited to i and g.