In reply to @zithral

@zithral @DavidKButlerUoA I think the numbering normally goes in the order the matches happen, so \1 is the first group matched, \2 is the second, and so on

1 favourite 0 retweets

In reply to @christianp

@zithral @DavidKButlerUoA so if the input is "hello hell" and the regex is "(he)(l+)o \1\2", then \1 matches the other instance of "he" and \2 matches the other instance of "ll"

1 favourite 0 retweets

View this tweet on twitter.com

This tweet as JSON