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
0
votes
1 answer

AngularJS route without slash

in AngularJS can I set up a style route like this: http://www.mydomain.com/title-and-more-irrelevant-text-123456-category.html where '123546' is an indentifier ? with: $locationProvider.html5Mode(true); I must make this because I need keep the…
aloon
  • 403
  • 7
  • 17
0
votes
2 answers

How to prevent symbols from being stored in the database using php?

How do I prevent symbols like /, \, ;, etc. being stored in the database? I am already using mysql_real_escape_string(), but if in an input field in my form I put \mymail@mydomain.com, I find the email stored in the database with the "\". How can I…
Mohammad99
  • 47
  • 2
  • 2
  • 11
0
votes
1 answer

Remove Forward Slash from html tags in Dreamweaver

I want to use the find and replace feature in Dreamweaver to search for meta tags and link tags with /> in them and replace them with >. For example: Replace with: I discovered that this helps me find them…
0
votes
3 answers

Slash Character in Rate Limit Status JSON response

By Twitter Rest API 1.1, number of queries which could performed in 15 minutes is limited to 180. I want to learn my remaining query count. Documentation In response JSON, there is a slash at "search/tweets" section. So, I cant access to "remaining"…
0
votes
3 answers

How do I use slashes with query parameters?

I know it's very possible to have www.website.com/stuff/2 instead of www.website.com/stuff/page?=2 for page 2 of "stuff". How would I go about doing that though? I do not know what to search for. Edit to say that I am using PHP and $_GET to get the…
0
votes
2 answers

Replacing a specific character with string.replace()

I'd like to replace all occurences of / to \ . i used this snippet: _url = _url.Replace("/",@"\"); but it replaces / to \\. Why this happens? How can i modify the snippet to get a good result
Lamloumi Afif
  • 8,941
  • 26
  • 98
  • 191
0
votes
1 answer

mod rewrite internal error 500 multiple slash

Can someone help me again regarding this rewrite module, with this rules RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*) $1.php [QSA,L] with this rules, i can get the…
h4uw1n3
  • 31
  • 4
0
votes
1 answer

.htaccess 301 Redirect non slash domains and slash domain to .html

I am trying to add some code to my .htaccess to redirect slash and non slash urls to the .html all url's apart from my homepage. For example www.mydomain.com/cat/ and www.mydomain.com/cat should redirect to www.mydomain.com/cat.html I have…
Pippa Lee
  • 1
  • 2
0
votes
3 answers

/ appear in text when ' is used in mysql?

I have a html form that users of my site can type in, click submit and then mysql inserts this into the database, and for some reason when this gets submitted to my 'bio' column which is longtext and utf8_unicode_ci format, if a user types jame's…
John James
  • 31
  • 4
  • 7
0
votes
2 answers

Forward slashes in a JAVA regexp

General Situation: I am having some trouble matching a "/" when using String.matches("string"); I assume I am missing some level of escaping. matches("bar" + "[\\W\\w]*"); //works. matches("bar/" + "[\\W\\w]*"); //does not work. matches("bar\/" +…
Jonathon
  • 2,571
  • 5
  • 28
  • 49
0
votes
1 answer

Redirect to alternate url using the variable declared after first slash

Ok, Ive checked this site and still I am confused about how to do this... I need to take a url like this subdomain.domain.com/1234 and redirect to a url like this http://assets.subdomain.domain/php/store.php?store_num=1234 utilizing the numbers…
0
votes
1 answer

eclipse slash in vm argument

I have the same code running on Java 6 and Java 7, but in Java 7 it doesn't work as I expect. I write in the VM argument: -Dmy.root=D:\mvobs\S.4.8.600_view\ When I run it with Java 6 everything is OK: my.root=[D:\mvobs\S.4.8.600_view\\] but in…
0
votes
1 answer

swap function in prolog

I need to replace the term A/B in prolog with B/A. A and B are variables (could be either a number, an uppercase letter, or a lowercase letter) I mean, what is on the right side of the slash should be on the left side and vice versa. Examples: A/10…
John
  • 3
  • 2
0
votes
2 answers

Insert a slash in a string after every number except at the end (PHP)

i've a string $string; in this string i have a number, like 3743687 i wish to add a slash after every number, except at the end, so the result will be 3/7/4/3/6/8/7 is there a php function to do this, right ? any advice ? thanks
CalfCrusher
  • 350
  • 1
  • 4
  • 15
0
votes
1 answer

How do I redirect to a page of my site taking the trailing slash as the language parameter using .htaccess

I have this rule which is not redirecting properly: #redirect from www.mysite.com/page-NAME/es to www.mysite.com/public/index.php?page=NAME/es RewriteCond %{HTTP_HOST} ^(www.)?mysite.com$ RewriteCond %{REQUEST_URI} !public/ RewriteRule page-(.*)/es$…