in reply to Matching multiple {hits}

«if (//g)» not only makes no sense conceptually ("Check if it matches, then check again to make sure"?), it's buggy. You shouldn't see that in your program.