Top "Backslash" questions

The backslash character \ (not to be confused with slash /) is used in many languages to quote the next character, i.e. to make it lose its special meaning.

Javascript and backslashes replace

here is my string: var str = "This is my \string"; This is my code: var replaced = str.replace("/\\/", "\\\\"); I can't …

javascript replace backslash
How to escape the backslashes and the automatically generated escape character in file path in java

I have very small and simple problem but I am not getting solutions on it. Actually I am getting a …

java escaping filepath backslash
So what IS the right direction of the path's slash (/ or \) under Windows?

It seems Windows insists on writing a backslash \ in file paths, whereas .NET's URI class writes them with a slash /. …

path uri backslash
Add backslash to string

I have a path and I want to add to it some new sub folder named test. Please help me …

c# string path backslash
How can I use backslashes (\) in a string?

I tried many ways to get a single backslash from an executed (I don't mean an input from html). I …

javascript string substring backslash
Java regular expression value.split("\\."), "the back slash dot" divides by character?

From what I understand, the backslash dot (\.) means one character of any character? So because backslash is an escape, it …

java regex backslash
using backslash in python (not to escape)

import os path= os.getcwd() final= path +'\xulrunner.exe ' + path + '\application.ini' print final I want the …

python string backslash
Difference between forward slash (/) and backslash (\) in file path

I was wondering about the difference between \ and / in file paths. I have noticed that sometimes a path contains /and …

c# path filepath backslash slash
escaping backslash in java string literal

I am using Java for a while and come up with this problem: I use hard-coded paths in windows like "…

java string escaping backslash
How to replace " \ " with " \\ " in java

I tried to break the string into arrays and replace \ with \\ , but couldn't do it, also I tried String.replaceAll …

java regex string backslash