Originally Posted by
iamthwee
What is this Flex? some kinda regular expression library or something. Do you even need it or can your problem be simplified?
Flex
Flex (The Fast Lexical Analyzer)
Flex is a fast lexical analyser generator. It is a tool for generating programs that perform pattern-matching on text. Flex is a non-GNU free implementation of the well known Lex program.
http://www.gnu.org/software/flex/
http://flex.sourceforge.net/