[antlr-interest] lexer: embedded quotes assistance
Edwards, Waverly
Waverly.Edwards at genesys.com
Fri Aug 24 15:18:10 PDT 2007
That would make for much shorter code. I guess I didn't look well
enough.
Thank you,
W.
-----Original Message-----
From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of Johannes Luber
Sent: Friday, August 24, 2007 6:14 PM
Cc: antlr
Subject: Re: [antlr-interest] lexer: embedded quotes assistance
Edwards, Waverly wrote:
>
>>> ... Doesn't Java have a "replace all" function already?
>
> I looked and didn't find one. I had to work for that one a little
> didn't I?
> It would definitely make for shorter, prettier code.
>
Not having looked at your code I guess you mean to replace text in a
string. In that case, have a look at
<http://java.sun.com/javase/6/docs/api/java/lang/String.html#replaceAll(
java.lang.String,%20java.lang.String)>.
Best regards,
Johannes Luber
More information about the antlr-interest
mailing list