Control ordering regex match