in reply to strange behaviour of /regexp/sg
When I ran this it prints 3 zeros each time. Printing out what matched is different but the number of matches remained 3.
Update: My version was 5.6.0