modubot / modubot.js

Modubot: the scalable and extensible IRC bot.
https://modubot.net
BSD 3-Clause "New" or "Revised" License
19 stars 3 forks source link

Substitution plugin #10

Open kamaln7 opened 10 years ago

kamaln7 commented 10 years ago

s/search/replace

kamaln7 commented 10 years ago

https://github.com/Modubot/Modubot.js/commit/a2391315d7db532709db2d5d282309e6db50df84#diff-2b517c44a1a9a3e7ed79678660323e60R15

There are two possibilities. The second one is preferred but unfortunately Javascript does not support lookbehinds.