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