There have been many symbols of regular expressions before, this article will give you a summary of all the common symbols. All symbols explain the character description \ marks the next character as a special character, or a literal character, or a backward reference, or an octal escape character. For example, ' n ' matches the character "n". ' \ n ' matches a line break. The sequence ' \ \ ' matches "\" and "\ (" Matches "(". ^ matches the starting position of the input string. If the Multiline property of the RegExp object is set, ^ also matches the position after ' \ n ' or ' \ R '. $ matches the end position of the input string. If the Multiline property of the RegExp object is set, $ also matches the position before ' \ n ' or ' \ R '. * &
1. Interpretation of all symbols in regular expressions
Introduction: There have been a lot of regular expression symbols, this article will give you a summary of all the common symbols. All symbols explain the character description \ marks the next character as a special character, or a literal character, or a backward reference, or an octal escape character. For example, ' n ' matches the character "n". ' \ n ' matches a line break. The sequence ' \ \ ' matches "\" and "\ (" Matches "(".
2. A detailed description of the string type basics in Python
Introduction: This article mainly introduces the basic knowledge of string type in Python tutorial, including the escape character and string concatenation as well as the original string and other basic knowledge, the need for friends can refer to the following
3. How to convert HTML escape characters with JS
Introduction: This article describes how to convert HTML escape characters with JS
4. Detailed description of MyBatis methods for handling greater than and less than numbers in XML
Introduction: First, the escape character in the MyBatis configuration XML file, strictly speaking, only the characters "<" and "&" are illegal in XML. ellipses, quotes, and greater-than numbers are legal, but it's a good practice to replace them with entity references. "<" generates an error because the parser interprets the character as the beginning of the new element. "&" also generates an error because the parser interprets the character as the beginning of the character entity. Workaround, replace with an XML escape character: Escape symbol
5. How HTML escape characters are passed through code recognition methods
Introduction: Occasionally see in the data such as ' such characters, the browser encounters these escape characters, will be escaped back, but how to identify through the code, the following to discuss with you the HTML escape character, like friends can understand the next
6. Code details for XML special characters and spaces line break escape characters
Summary: This method has an inconvenience, that is, it preserves all the spaces in the element, even if the spaces are normalized by the code format. This means that you can't use shortcut keys like ctrl+e,f to sort out the code format, and once you've accidentally sorted it out, it's a hassle to change back.
7. PHP addslashes function for filtering strings
Introduction: For data security, prevent injection need to filter $_get obtained string, at the beginning I also wrote the filter function, and later see PHP comes with a filter function, so the addslashes recommend to everyone. An example of using addslashes () is when you want to enter data into the database. For example, the name O ' Reilly is inserted into the database, which needs to be escaped. Most databases use \ as escape character: O\ ' Reilly. This allows data to be placed in the database without inserting additional ...
8. JavaScript escape character
Description: JavaScript escape character
9. PHP Self-taught no00006 data type string escape character
Introduction::P HP Self-study no00006 data type string escape character: <?php//the preceding ordinal only to distinguish the result of the operation Echo 1n;//single quotation mark output echo "2n";//double quotation mark wrap echo 3r;echo "4r";//Enter Echo 5t ; Echo
10. Simple generalization of the difference between single and double quotation marks in a PHP string there are double quotes in a double quote string in a string in the Java string.
Summary: double quotes, strings: A simple generalization of the difference between single and double quotes in a PHP string: Today a friend asked, the difference, by the way review. Single quotes differ from double quotation marks: "" The fields inside the double quotation mark are interpreted by the compiler and then output as HTML code. "The single quotation mark does not explain, the direct output." Single quotation marks are resolved more quickly than double quotes. Single quotes support escape characters, and double quotes support more escape characters. $hello = 3;echo "Hello is $hello"; Print Result: Hello is 3 echo ' Hello is $hello ';
"Related question and answer recommendation":
javascript-html transfer between escape characters
How do I replace the "\ \" symbol in a string in Python?
JavaScript-solving parentheses in English
Javascript-json Data Escaping problem
Path-python processing USB drive Directory