what are the limitations on regex for word mutes?
-
what are the limitations on regex for word mutes? i tried to do a negative lookahead but sharkey rejected it
-
so like. let's say i particularly don't want to see the word "test" or any unexpected variation of it ("retest", "testing", any word i didn't predict that has "test" in it)
but im fine with "testosterone" so i want to make an exception for that
i believe i would do/test(?!osterone)/i
right? but it says that's an invalid regex expression
i guess i could do/test\b/i
and/test[^o]/i
; that should work as long as the word doesn't happen to have "testo" in it
Copyright © 2024 NodeBB | Contributors