Question: What is the role of regular expressions in lexical analysis?
Options:
Correct Answer: To specify the syntax of the tokens
Solution:
Regular expressions are used to specify the syntax of the tokens that the lexical analyzer recognizes.