in reply to Re^2: replacing backward slash with forward slash
in thread replacing backward slash with forward slash

I am getting desired output. So why is single quotes working and double quotes is not working ?

Both are working.

Single quotes work different from double quotes

If you want to know why, read the manual

  • Comment on Re^3: replacing backward slash with forward slash