in reply to Regexp map weirdness

Well it depends what you're reading in.

However both of your matches start at the beginning of the string not where the previous one left off.

For that type of behavior check out the /g modifier and the /G tag. Or you could combine everything into one regular expression if that'd work.