Escape Character \· A special character constant;· Starts with a backslash "\", followed by one or several characters.· It has a specific meaning. It is called "escape" because it is different from the original meaning of the character.· It is
For example, the standard syntax for a regular expression with the same 3-bit number is:
([\d]) \1{2}
However, if you write this in Java code, you will see a syntax error, as follows:
String regEx = "([\d]) \1{2}";
Common Project suffixes:. config---Configuration files (files that hold configuration parameters). csproj---Project files (files for managing projects). sln-------Solution files (Manage projects). CS--------Source file (program code)Four elements of
Escape character
Significance
ASCII code value (decimal)
\a
Bell (BEL)
007
\b
BACKSPACE (BS) to move the current position to the previous column
008
\f
Page Break (FF),
Substitution of 1,shell variablesVariables can be replaced by a specific value depending on whether the variable is empty or deleted${var} variable Original value$ (Var:-word) If the variable is empty or has been deleted then return to Word, but do
Concatenation of strings:Number Type: + number is add!String Type: + number is stitching!If multiple strings or multiple numbers + numbers, the string will turn the nearest number into a string and then stitch it up!From top to bottom, the nearest
1. The regular expression needs to match the content itself with the HTML escape character, need to escape, otherwise cannot matchFor example, for "requestno\": \ "3b89957436eaacd8311535e014c208b8\", \ "biztype\" extract requestno, You need to set
Defining stringsWe've explained what strings are in front of us. Strings can be represented by "or".What if the string itself contains ' what? For example, we want to represent the string I ' m OK, at this point, you can use "" to denote:"I ' m
Note that the escape character of a space is divided into the following types:Usually used is the 1. &160#; continuous whitespace (1 character width)2.  &8194#; half Blank (1 character width)3.  &8195#; a blank (2 character width)4.
Bibliography: The Hard Learn Python##练习10Print("I am 6 ' 2\ "tall.")#to escape double quotesPrint('I am 6\ ' 2 "tall.')#to escape single quotes#The print is the string in quotation marks, this example is to illustrate the quotation marks in the same
Mysql
MySQL escape character "\"
MySQL recognizes the following escape characters:
The
An ASCII 0 (NUL) character.
\ n
A new line character.
\ t
A locator character.
\ r
A carriage return character.
\b
A backspace.
\'
A single quotation mark ("'")
Escape: a backslash (\) is placed before a character that needs to be escaped, indicating that the character is to be treated as a normal character.The escape character is occasionally used when using sed awkFor example, I insert a string from line 8
Escape character reference table:
\ At the end of a row
Line continuation character
\\
Print a backslash
\‘
Print single quotation marks
\"
Print double quotation marks
An escape character is a combination of some ordinary characters that replaces some special characters, and is called "escaped" because its combination changes the meaning of the original character representation.Common escape characters:\ n Enter (\
Recently has been with the third-party platform docking data, but also gradually reviewed the JSON data, perhaps the new people have a certain guide it. For example: [{"Teamid": "138", "Reason": "Muscle Damage", "name": "Aitor Sanz", "playerID": "116
Look at a program.
String t = "a| | b| | c| | D ";
string[] temp = t.split ("\\|\\|");
System.out.println (temp.length);
Mainly is: "\\|\\|" stands for what meaning.
The beginning is a bit of a monk, then carefully see understand, the original is
During the groping process, see such characters as "\155", used in place of the character "M". Why? .... Completely do not know the reason, the whole person suddenly panic! Don't say your 4 years of experience! "\155" and "M" is congruent, until now,
First create a test table:Insert into Test (TT) Values ('\\\\172.18.28.153');Now I want to use fuzzy matching to find out the string that starts with "\\172".Need to use like because "\" is an escape character, so you need to use 4 "\". The
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.