Look at next character to determine which re to match rather than trying each in turn