in reply to cg modifier in m operator

Check out perlfaq6 where it says "Typically you use the \G anchor with the c flag when you want to try a different match if one fails"