Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the character classes of C #

2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the relevant knowledge of "what are the character classes of C#". The editor shows you the operation process through an actual case. The operation method is simple, fast and practical. I hope this article "what are the character classes of C#" can help you solve the problem.

Character class

The character class matches any one of a set of characters.

The following table lists the character classes:

The character class describes the pattern match [character_group] matches any single character in the character_group. By default, matches are case sensitive. [mn] "m" in "mat", "m" and "n" [^ character_group] in "moon" are not: match any single character that is not in character_group. By default, characters in character_group are case sensitive. The "v" and "l" [first-last] character ranges in [^ aei] "avail": match any single character in the range from first to last. [bmurd] [bmurd] irds can match Birds, Cirds, Dirds. Wildcard: matches any single character except\ n.

To match the original meaning period character (. Or\ u002E), you must precede the character with an escape character (\.). The "ave" in A.E "have" and the "ate" in "mate"\ p {name} match any single character in the Unicode generic category or named block specified by name. The "C" and "L"\ P {name} in\ p {Lu} "City Lights" match any single character that is not in the Unicode generic category or named block specified by name. The "I", "t" and "y"\ w in\ P {Lu} "City" match any word character. \ w "R", "o", "m" and "1"\ W in "Room#1" match any non-word characters. The "#"\ s in\ W "Room#1" matches any white space characters. The "D"\ S in\ w\ s "ID A1.3" matches any non-white space characters. The "_"\ d in\ s\ S "int _ _ ctr" matches any decimal number. The "4"\ D in "4 = IV" matches any character that is not a decimal number. The contents of "", "=", "", "I" and "V" in\ D "4 = IV" about "what are the character classes of C#" are introduced here. Thank you for your reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report