dbot/modules-stock/regex
Georg 70a21d2b18
Signed-off-by: Georg <georg@lysergic.dev>
Init

- Initial fixes in modules
- Bundled adapted jsbot
- Elaborative README.md
2021-08-24 21:16:26 +02:00
..
config.json Signed-off-by: Georg <georg@lysergic.dev> 2021-08-24 21:16:26 +02:00
README.md Signed-off-by: Georg <georg@lysergic.dev> 2021-08-24 21:16:26 +02:00
regex.js Signed-off-by: Georg <georg@lysergic.dev> 2021-08-24 21:16:26 +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.