Flex regular expression problem

"pmatos" <pocm@sat.inesc-id.pt>
21 Aug 2005 00:25:07 -0400

          From comp.compilers

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)
| List of all articles for this month |
From: "pmatos" <pocm@sat.inesc-id.pt>
Newsgroups: comp.compilers
Date: 21 Aug 2005 00:25:07 -0400
Organization: http://groups.google.com
Keywords: lex, comment
Posted-Date: 21 Aug 2005 00:25:07 EDT

Hi all,


I'm having some problems generating the regular expression for "any
printable character except " between ". For example:
"hello, how are you"
"212 dasd 2"
"bugasd "


"" - SHOULD NOT WORK
" " - Can work!


I'm trying along the following lines:
identifier \"[[:print:]^\"]+\"


but it never works as I expect. Any ideas?


Cheers,


Paulo Matos
[You can use [^"] for anything except a quote, but there's no lex-ism
to take the difference of two regexps. -John]


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.