bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/26112] New: string.replaceAll("\\")


From: mike at saxonica dot com
Subject: [Bug classpath/26112] New: string.replaceAll("\\")
Date: 5 Feb 2006 23:35:04 -0000

Within the replacement string of replaceAll(), a double "\\" should cause a
single "\" to be inserted. Thus

s = s.replaceAll("\\.", "\\\\.");

should cause any occurrence of "." to be replaced by "\.". However, it seems to
cause "." to be replaced by "\\.".

Michael Kay


-- 
           Summary: string.replaceAll("\\")
           Product: classpath
           Version: 0.20
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mike at saxonica dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26112





reply via email to

[Prev in Thread] Current Thread [Next in Thread]