[antlr-interest] how to match up to EOL

Benjamin Shropshire shro8822 at vandals.uidaho.edu
Mon Feb 4 14:07:23 PST 2008


I need to match the regex '.*' but in the GREP form where '.' dose not 
match \n or \r. I considered ".*('\r'|'\n')" but that also gets the EOL 
and I mustn't do that. I can't seem to a regex help page or I'd try for 
[^\n\r]*.

Any help?

Benjamin Shropshire


More information about the antlr-interest mailing list