in reply to Unexpected regular expression match

Updated: Well I really miss something which I should study. My original wrong answer:

Why do you expect it doesn't match ? '\w' includes '\d' and '_' .. and you have a '?' which make optional the (?: _\d+) group

  • Comment on Re: Unexpected regular expression match