Possible bug when backreferencing a capturing group
Posted: Mon Jul 27, 2015 3:24 pm
Hey dudes,
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:
That wasn't firing. However, if I shortened it to
things worked fine.
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?
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?