qaisjp / mtabot

Discord bot
5 stars 0 forks source link

LUA: update regexp string to only get " LUA " #3

Closed Woovie closed 5 years ago

Woovie commented 5 years ago

This should fix issue #1

Woovie commented 5 years ago

Actually, I just realized this won't capture "LUA" and nothing else, but I'm not sure that's important. It also won't capture "LUA sucks" or "I hate LUA", which is a bit more important. I'll revise this.

Woovie commented 5 years ago

Still not quite right. It's missing some. The regex site I was using to test was matching line returns... Testing further.

qaisjp commented 5 years ago

Would just \WLUA\W work?

Woovie commented 5 years ago

No, but I made a solution!

(^|\W)LUA($|\W)

Screen Shot 2019-07-09 at 8 40 06 PM