By default flex uses the longest match rule. Is there any way to override this behavior to make it match the shortest sequence?
Thank you
By default flex uses the longest match rule. Is there any way to override this behavior to make it match the shortest sequence?
Thank you
This page in the Flex manual says that it doesn't have any non-greedy operators because it is a scanner rather than a parser, and suggests regular expressions could be used to add the missing functionality.