in reply to Re-use of a global match

Read up on the /g modifier. The second match only starts after the place the first one matched.