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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With