In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Today, the editor will share with you the relevant knowledge points about the escape characters of C#. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article, let's take a look at it.
Character escape
The backslash character (\) in a regular expression indicates that the character that follows it is a special character or that it should be interpreted literally.
The following table lists the escape characters:
Escape character description pattern match\ a matches the alarm (bell) character\ u0007. The "\ u0007"\ b in "Warning!" +'\ u0007' matches the backspace key\ u0008 in the character class. [\ b] {3,} "\ b\ b" in "\ b\ b" matches the tab\ u0009. "Name\ t" and "Addr\ t"\ r in "Name\ tAddr\ t" match the carriage return character\ u000D. (\ r is not equivalent to the newline character\ n. )\ r\ n (\ w +) "\ r\ nHello\ nWorld." The "\ r\ nHello"\ v in matches the vertical tab character\ u000B. "\ v\ v\ v" in [\ v] {2,} "\ v\ v\ v" matches the page feed character\ u000C. The "\ f\ f\ f" in [\ f] {2,} "\ f\ f\ f" matches the newline character\ u000A. \ r\ n (\ w+) "\ r\ nHello\ nWorld." The "\ r\ nHello"\ e in matches the escape character\ u001B. The "\ x001B"\ nnn in\ e "\ x001B" specifies a character in octal representation (nnn consists of two to three digits). The "a b" and "c d"\ x nn in\ w\ 040\ w "a bc d" specify characters using hexadecimal representations (nn happens to be made up of two digits). The "a b" and "c d"\ c X\ c x in\ w\ x20\ w "a bc d" match the ASCII control characters specified by X or x, where X or x is the letter of the control character. The "\ x0003" (Ctrl-C)\ u nnnn in\ cC "\ x0003" matches a Unicode character (a four-digit number represented by nnnn) in hexadecimal representation. The words "a b" and "c d"\ in\ w\ u0020\ w "a bc d" match with an unrecognized escape character. \ d + [\ +-x\ *]\ d + [\ +-x\ *\ d + [2 +-x\ *\ d + (2x2) * 3 # 9 "above are all the contents of the article" what are the escape characters of C# "? thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.