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

Android Retrofit: java.lang.ExceptionInInitializerError

ERROR: When working with Retrofit, the application crashes with the following error: java.lang.ExceptionInInitializerError. private const val MAIN_URL = "https://api.main.com" private const val ADDITIONAL_URL = "/trending"
-1
votes
2 answers

HTTP ERROR 405 | ASP.NET Core 3.1 MVC | slash problem

I need some help right there. I'm using ASP.NET Core 3.1 MVC, all is going well, but not for a specific action. I have several pages : Start -> Index -> AddUser. I navigate between my pages thanks to
-1
votes
1 answer

add slashcommands in a google chat bot

i am trying to create a bot in google chat and i would like to enter slash commands. it's my first time creating a bot in google chat and i admit i am definitely a beginner. what i managed to do is publish the bot and make it reply to messages, then…
zbrady
  • 1
  • 1
-1
votes
3 answers

Regex for splitting word / (slash) word

I really need a regex expert: I need a regex expression (in java) for splitting this examples: Hello/World (word/word) => Hello,World Hello/12 (word/number) => Hello,12 15/Hello (number/word) => 15,Hello 12/17 (number/number) => 12/17 (Do not…
-1
votes
1 answer

regex matching when not trailing slash

How would a regex look like when i have the input foo.bar/level/1A foo.bar/level/1A/test foo.bar/level/1B foo.bar/level/1A/blabl/sdffs foo.bar/test As a result I only want the urls where the root items in the level folder so…
byenary
  • 301
  • 2
  • 3
  • 7
-1
votes
1 answer

How do I change the pattern with a certain condition in plot R

> VAR Estimate ymax ymin t.value SIDE > TM1 0.45207287 0.55211315 0.3520326 4.5189087 EAST > TM400 0.24634616 0.294695776 0.19799654 5.0951003 EAST > TM800 0.22187081 0.270010311 …
jhyeon
  • 456
  • 4
  • 14
-1
votes
1 answer

passing sed argument with slash ( making a directory a string ?)

I am trying to pass in assets/css/images to replace images in multiple files. So I wrote this script $list $word $neword $i echo "select files: " read list echo "input word to search for: " read word echo "input word to replace with: " read…
-1
votes
1 answer

Replace questionsmark with slash

I have a webpage where users can upload pictures, but there is a problem, I use get to know the name of the picture. I use: mypage.com/post.php?p=1 But I want to use: mypage.com/post/1 Like in this website:…
klmjiub
  • 5
  • 3
-1
votes
1 answer

Forward slash with back slash in javascript? Why?

So i am new to node.js and I have come across this line of code that confuses me: if (/^\/api\/parsetime/.test(req.url)) I understand the the test() part of it, but only the part before test is odd. The exercises goal was to do something with the…
Roman Timm
  • 65
  • 1
  • 11
-1
votes
1 answer

R: how to get rid of the \ character in R

I am importing a table with the following code: data <- read.csv("E:/test_division/division_finale2009/file_list_months_weeks/scope_ais_april.csv", nrows=1000, sep=",") t<-subset(data,data$mmsi==211330370) When I have a look to my data, it seems…
Floni
  • 475
  • 2
  • 13
-1
votes
1 answer

Why does System.Uri interpret two slashes in a row as folder?

I've gotten into the habit of always putting a trailing slash at the end of my folder paths and this appears to be the norm (e.g. Visual Studio macros such as $(ProjectDir) always have a trailing slash). In addition, when I'm appending a relative…
Benrobot
  • 2,630
  • 1
  • 21
  • 24
-1
votes
1 answer

php, string slash problems

generirajSkripte() is my function, but its not important for detecting problem. So, next code work good: generirajSkripte('pages/','developingStyles/','develop'); generirajSkripte('pages/','developingStyles/fonts/','fonts'); This code work good…
-1
votes
1 answer

Php page with slash parameter

recently I have noticed that on some of my php webpages it is possible to add a slash (/) at the end of URL and write some text, which somehow modifies the page, e.g. assume address (just address example, not available…
George
  • 21
  • 4
-1
votes
1 answer

clean at all stages url

The problem is a slash / "example.ru/aboutus/" translates into a "500 server error" and appends http://example.ru/aboutus/.html at the end of uri. .HTACCESS ## www.site/index.html ==> site/index.html ## RewriteEngine On RewriteBase / RewriteCond…
-1
votes
1 answer

From trailing slash to query (PHP/.htaccess)

I would like to keep the links in the address bar as short and clean as possible, for example: http://example.com/th1ng If in the database there is a row with 'th1ng' as username, the above link should work…
Toine Lille
  • 55
  • 1
  • 7
1 2 3
30
31