[antlr-interest] Regular Expression Syntax in ANTLR

Matt Quail matt at cortexebusiness.com.au
Sun Mar 23 13:45:13 PST 2003


> One problem is with USER/Domain. I tried ('A'..'Z''a'..'z')
> + '\'('A'..'Z''a'..'z')+ .

I think you also need to seperate the 'a .. z' bits with an | like so:

('A'..'Z' | 'a'..'z')+ '\\' ('A'..'Z' | 'a'..'z')+

=Matt


 

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



More information about the antlr-interest mailing list