I am studying viruses and trying to figure out how the FLEX module works for C++. I have taken classes before on regular languages, context free, etc. Is FLEX dealing with regular languages or regular expressions, and also what is the difference exactly? Could you give an example of how a flex program works and or point me to a link that does? How it integrates with C++? I am trying to use it to scan for particular code in viruses as a parser.