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

replaceAll("\","//")

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • None
    • javafx

      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

            kcr Kevin Rushforth
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: