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.

Weird backslash substitution in Ruby

I don't understand this Ruby code: >> puts '\\ <- single backslash' # \ <- single backslash >> …

ruby regex backslash
Backslash (\) behaving differently

I have small code as shown below public class Testing { public static void main(String[] args) { Scanner sc = new Scanner(…

java string backslash
Windows shell string operations (changing backslash to slash)

I need to write a script that takes the current path (%~dp0), transforms backslashes into forward slashes and passes it …

windows shell backslash
Path with backslashes to path with forward slashes javascript

I'm trying to make a local xml file parsing "application" for some colleagues and i'm using the current function to …

javascript replace backslash
Concatenate backslash on python

I'm new to python so forgive me if this sounds simple. I want to join a few variables to produce …

python concatenation backslash
MySQL PHP Escape String '\' - Why is it not saved in the database with the backslash?

Confused about escape string and how it is stored in the database In my MySQL call, I escaping a string …

php mysql escaping backslash
sh read command eats backslashes in input?

Perhaps easiest to explain with an example: $ echo '\&|' \&| $ echo '\&|' | while read in; do …

shell sh backslash
Error with double backslash in Windows path in Python

I want to work with paths in Windows in Python 3.3, but I have an error: FileNotFoundError: [Errno 2] No such file …

python file backslash
Escaping backslash in AWK in command substituion

I am trying to escape backslash in AWK. This is a sample of what I am trying to do. Say, …

bash awk backslash command-substitution
Replace double backslashes with a single backslash in javascript

I have the following problem: I have a script that executes an AJAX request to a server, the server returns …

javascript ajax replace backslash