[antlr-interest] lexer: embedded quotes assistance

Johannes Luber jaluber at gmx.de
Fri Aug 24 15:14:21 PDT 2007


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