regex result types are strange