Top "Slash" questions

Please do not use this tag.

Get value of a string after last slash in JavaScript

I am already trying for over an hour and cant figure out the right way to do it, although it …

javascript substring indexof slash
Python Replace \\ with \

So I can't seem to figure this out... I have a string say, "a\\nb" and I want this to …

python string replace double slash
Is it possible to use "/" in a filename?

I know that this is not something that should ever be done, but is there a way to use the …

linux unix directory filenames slash
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
Remove a trailing slash from a string(changed from url type) in JAVA

I want to remove the trailing slash from a string in Java. I want to check if the string ends …

java url slash trailing
Remove all backslashes in Javascript

How to remove all backslash in a JavaScript string ? var str = "one thing\\\'s for certain: power blackouts and surges …

javascript web-scraping slash
Add Trailing Slash .htaccess

I'm trying to get the following effect (using this local file http://localhost/[company_name]/[project_name]/.htaccess): http://localhost/[…

.htaccess mod-rewrite redirect slash trailing-slash
How do you grep for a string containing a slash?

How should I grep for a string containing a forward slash like ./.?

grep slash
Forward slash or backslash?

I am looking to write and read text files to and from (respectively) a directory different from that of my …

java text file-io slash
Replace slash in Bash

Let's suppose I have this variable: DATE="04/Jun/2014:15:54:26" Therein I need to replace / with \/ in order to get the string: "04\/…

regex linux bash tr slash