Questions tagged [slash]

Please do not use this tag. The / character ("forward slash", or just "slash") is a directory separator in URLs and in many operating systems including Linux (Windows uses \ (backslash) but many applications and APIs also accept /). It is also the division operator in many languages, and marks closing tags in XML/HTML. In some languages, / characters delimit regular expressions.

The slash character / (sometimes called forward slash to distinguish it from \ ) has several common meanings in computing:

  • / is the directory separator in file names on Unix-like and POSIX operating systems, including Linux. Many Windows APIs and applications accept / as a directory (folder) separator, although some require a backslash \ instead. / is also the directory separator in URLs.
  • In many programming languages, / is the division operator . When applied to integers, / returns the quotient of the division in many languages.
  • In SGML based languages including and , / marks closing tags, as in <b>bold</b> or <br />.
  • / is a common delimiter for regular expressions searches (in , , , etc.).
465 questions
-1
votes
1 answer

Why we have backslash for DOS and slash for linux and URL?

I use both windows and Linux and often I got confused when I use command lines... 1>MS-DOS use backslash like C:\Documents and Settings\user_name\Desktop\ 2>Linux use slash like /usr/lib 3>URL seems to use slash like…
RoundPi
  • 5,819
  • 7
  • 49
  • 75
-2
votes
2 answers

Is there a string function that can separate words joined with slash?

For example if I have string "October/November", is there a function that can separate these two words into two strings "October" and "November"?
-2
votes
1 answer

How to add slashes to the end of a TCHAR buffer[] using Win32 C++

I am trying to add two slashes "\" to the end of a TCHAR buffer[] using wsprintf() in my Win32 C++ app. The variable "buffer" holds a file path: C:\Users\nayub\Desktop\Folder1\Hello. I want to add two slashes to the end of this file path so did the…
Sophia
  • 57
  • 1
  • 9
-2
votes
1 answer

How to escape the forward slash in the string in javascript? C# web api not recognizing the forward slash

How do i escape forward slash in javascript ? string str= "[B]Hello How are you[/B]". This is the string i want to pass from client side to c# web api. C# web api not recognizing forward slash in the string. - "[REM][TB]Hello How are you[%2FTB]"
Dhello
  • 1
-2
votes
1 answer

Is a single slash the same as double slash after the domain name?

See, what happens in most cases is, if we try to open forcefully this url: www.example.com/games as www.example.com//games - it automatically gets redirected to www.example.com/games - this only. But, what when we are able to see both urls in the…
-2
votes
2 answers

Json with slash in string

I have a little problem in picking up the data from the JSON actually can get some data, however when you have the occurrence of "/_string" the script error. example: JSON "results":[{ price_value_prices: 15.05 price_value_prices/_currency:…
-2
votes
1 answer

Error exporting PHP string into a file

I have a website, where the user can write PHP/HTML code and save it to his computer. Everything is fine until the user types a slash (/). The file saves into the client computer, but instead of saving the client code, it exports an PHP error (the…
Jerome
  • 115
  • 2
  • 2
  • 8
-2
votes
2 answers

jQuery: how to write the double slash '//' so that it does not throw error?

I have this code: (options.parent) ? top = options.parent.height / 2; : top = parent.height() / 2; Because of the double slash that i use there it get's an error i know why i get the error i just don't know how to write it to work. Thanks again.
Anghel Gabriel
  • 55
  • 1
  • 1
  • 6
-3
votes
1 answer

How to use slash commands in Discum

I want to use it to trigger slash commands from other bots. As an example, I want to let the self bot write /ping and the Dankmemer should recognize that and respond. I have already tried to do this. My first problem is the script runs error free,…
-3
votes
1 answer

What does this forward slash do

for (n=0;n
wasido
  • 74
  • 6
-3
votes
5 answers

What does slash dot refer to in a file path?

I'm trying to install a grunt template on my computer but I'm having issues. I realized that perhaps something different is happening because of the path given by the Grunt docs, which is %USERPROFILE%\.grunt-init\ What does that . mean before…
CodyBugstein
  • 21,984
  • 61
  • 207
  • 363
-3
votes
1 answer

C++ macro concatenate with / slash

How do I write a macro to do the following RESOURCEPATH(image, menu.png) and get the string "image/menu.png" More advanced question: I would like to write a macro to do the above but output different strings depending on conditional def (#ifdef IOS,…
james bond
  • 31
  • 3
-4
votes
1 answer

what does these perl variables mean?

I'm a little noobish to perl coding conventions, could someone help explain: why are there / and /< in front of perl variables? what does\= and =~ mean, and what is the difference? why does the code require an ending / before the ;, e.g. …
alvas
  • 115,346
  • 109
  • 446
  • 738
-5
votes
1 answer

Why does Visual Studio replaces my slash with a backslash?

In my project I save xml-files to a folder. The variable "header" contains the name of the file. string header = "anyString"; The line to save the file…
MarcSchaetz
  • 484
  • 4
  • 11
-5
votes
3 answers

Get rid the slash in URL (ex. something.com/dogs)

I recently purchased the domain name simply.do. I want to use it as a URL shortening service, but I don't like have to do simply.do/something. Can I remove the slash or replace it with a difference symbol? If this helps, I am using a server running…
jbenes
  • 71
  • 1
  • 12
1 2 3
30
31