Related articles |
---|
Flex regular expression problem pocm@sat.inesc-id.pt (pmatos) (2005-08-21) |
Re: Flex regular expression problem Meyer-Eltz@t-online.de (Detlef Meyer-Eltz) (2005-08-24) |
Re: Flex regular expression problem lfinsto1@gwdg.de (Laurence Finston) (2005-08-24) |
Re: Flex regular expression problem bonzini@gnu.org (Paolo Bonzini) (2005-08-31) |
From: | "Paolo Bonzini" <bonzini@gnu.org> |
Newsgroups: | comp.compilers |
Date: | 31 Aug 2005 00:31:19 -0400 |
Organization: | http://groups.google.com |
References: | 05-08-07905-08-088 |
Keywords: | lex |
Posted-Date: | 31 Aug 2005 00:31:19 EDT |
> "([^"\\\r\n]*(\\.[^"\\\r\n]*)*)".
>
> Here the first sub-expression delivers the text inside of the double
> qotes. This expression is optimized according to Friedl's scheme (see
> the help file of the TextTransformer).
Flex uses a DFA, so you do not really need optimization and you can do
simply
"(\\.|[^"\\\r\n])*"
Paolo
Return to the
comp.compilers page.
Search the
comp.compilers archives again.