Backslash

From Wikipedia, the free encyclopedia

v  d  e
Punctuation

apostrophe ( ', )
brackets ( ), [ ], { }, < >
colon ( : )
comma ( , )
dashes ( , , , )
ellipsis ( , ... )
exclamation mark ( ! )
full stop/period ( . )
guillemets ( « » )
hyphen ( -, )
question mark ( ? )
quotation marks ( ‘ ’, “ ” )
semicolon ( ; )
slash/stroke ( / )
solidus ( )

Interword separation

spaces ( ) () ()
interpunct ( · )

General typography

ampersand ( & )
asterisk ( * )
at ( @ )
backslash ( \ )
bullet ( )
caret ( ^ )
currency ( ¤ ) ¢, $, , £, ¥, ,
dagger ( ) ( )
degree ( ° )
emoticons :-)
inverted exclamation point ( ¡ )
inverted question mark ( ¿ )
number sign ( # )
percent and related signs
( %, ‰, ‱ )
pilcrow ( )
prime ( )
section sign ( § )
tilde/swung dash ( ~ )
umlaut/diaeresis ( ¨ )
underscore/understrike ( _ )
vertical/pipe/broken bar ( |, ¦ )

Uncommon typography

asterism ( )
lozenge ( )
interrobang ( )
irony mark ( ؟ )
reference mark ( )
sarcasm mark

First introduced in 1960 by Bob Bemer, the backslash, \, is a typographical mark (glyph) used chiefly in computing. Sometimes called a reverse solidus, it is the mirror image of the common slash. It is also known as a slosh, according to the Macquarie dictionary (3rd edition). In colloquial speech, it is sometimes pronounced wack.

On Unix systems, and in many programming languages such as C and Perl, the backslash is used to indicate that the character following it should be treated specially. It is sometimes referred to as a knock-down or escape character, though this risks confusion with the character generated by the Esc key. In various regular expression languages it acts as a switch, changing literal characters into metacharacters and vice versa. The backslash is used similarly in the TeX typesetting system and in RTF files to begin markup tags.

In the context of line-oriented text, especially source code for some programming languages, it is often used at the end of a line to indicate that the trailing newline character should be ignored, so that the following line is treated as if it were part of the current line. In this context it may be called a "continuation".

In DOS and Microsoft Windows, the backslash as well as the forward slash are used as the delimiter between directories and filenames. This is in contrast to Unix and Internet URLs (web addresses), which only use the forward slash. In an early version of DOS, which did not support directories and thus had no need for a path delimiter, the forward slash was used to introduce command-line options (in Unix, the hyphen ["-"] is used for this purpose.) When directories were introduced to DOS, another character had to be chosen to be able to represent the delimiter, and the backslash was selected.

The backslash's prominence in Microsoft Windows' path names might explain why the forward slashes in URLs are occasionally (and erroneously) read out loud as "backslash". It has even led to its erroneous placement in contexts not relating to directories, or computers at all, for that matter. For example, people might write about an "African\American ancestry". Computer-illiterate people who would once say "slash" when they meant "backslash" are now so used to being corrected that they now say "backslash" when they mean "slash," for example, when speaking a URL.

In the Japanese ISO 646 encoding (a 7-bit code based on ASCII), the code point that would be used for backslash in ASCII is instead a yen mark (¥), while on Korean computer keyboards, the backslash corresponds to the won symbol (₩ or W). Many Japanese environments nonetheless treat it like a backslash, causing confusion. To add to the confusion, some fonts, like MS Mincho, render the backslash character as a ¥, so the Unicode characters 00A5 (¥) and 005C (\) look almost identical when these fonts are selected.

In mathematics, a backslash-like symbol is used for the set difference.

In some dialects of the BASIC programming language, the backslash is used as an operator symbol to indicate whole-number division.

Advanced Search
Included Web Search Engines


Safe Search

close

Top Matching Results

Occasionally Search.com will highlight specialized results that are based on the context of your query. Examples of specialized results include specific links to news, images, or video.

Top Matching Results may highlight information from other Search.com pages, content from the CNET Network of sites, or third party content. The listings are based purely on relevance. Search.com does not receive payment for listings in this section but our partners that provide this data may get paid for listing these products.

Sponsored Links

This section contains paid listings which have been purchased by companies that want to have their sites appear for specific search terms and related content. These listings are administered, sorted and maintained by a third party and are not endorsed by Search.com.

Search Results

Search.com sends your search query to several search engines at one time and integrates the results into one list which has been sorted by relevance using Search.com's proprietary algorithm. You can customize the list of search engines included in your metasearch from the preferences.

The search engines that are used in your metasearch may allow companies to pay to have their Web sites included within the results. To view the Paid Inclusion policy for a specific search engine, please visit their Web site. Search.com does not accept payment or share revenue with any search engine partner for listings in this section.