Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8113840

replaceAll("\","//")

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: javafx
    • Labels:

      Description

      Hi,
      I want to use replaceAll() function.
      I have an String variable str.
      str = "D:\Image\img.png";
      now I want to tranform this str variable's value into "D://Image//img.png"
      So, I used the replaceAll() function like this:- replaceAll("\","//");
      but it gives an error for first parameter :- \
      So please tell me how to do it

        Attachments

          Activity

            People

            Assignee:
            kcr Kevin Rushforth
            Reporter:
            duke J. Duke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: