cybmole -- that is no excuse not to catch as many as you can in one go.
phossler -- regex functions have to act on the result of single search, so I'm not sure that would work.
You could certainly test the match to see which case it looks like, though.