[antlr-interest] Regular Expression Syntax in ANTLR

Andrew Deren andrew at adersoftware.com
Sun Mar 23 08:23:25 PST 2003


Put '\\' this will escape the backslash for antlr, and will accept it
Andrew

----- Original Message -----
From: "rcreekmore_2003" <rcreekmore_2003 at yahoo.com>
To: <antlr-interest at yahoogroups.com>
Sent: Sunday, March 23, 2003 10:11 AM
Subject: [antlr-interest] Regular Expression Syntax in ANTLR


> Can someone tell me what regular expression syntax ANTLR uses, and
> where I could find some examples?
>
> I am trying to parse fields from a web log file and having some
> difficulty.
>
> One problem is with USER/Domain. I tried ('A'..'Z''a'..'z')
> + '\'('A'..'Z''a'..'z')+ .
>
> This didn't work (it doesn't like the backslash, which, in this
> case, I don't want to treat as an escape character.
>
> Any help would be much appreciated.
>
>
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list