I ran into some unusual behavior today. I'm using a backreferenced capturing group to make sure that a trigger only fires when someone announces their own name in a message. Here's the string I intended to use:
Code: Select all
^(\w+) tells (?:the )?\w+(?::\d)?, '\1 is tanking
Code: Select all
^(\w+) tells (?:the )?\w+(?::\d)?, '\1 is ta
Is there some hard limit set on the number of characters that can be parsed after a backreference or have I stumbled onto a possible bug?