No, g is the global modifier so gives you multiple mateches rather than stopping on the first match encountered.