In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to write the hexadecimal regular matching in the programming language. I hope you will get something after reading this article. Let's discuss it together.
It is composed of 0-9 Magi Amurf. The corresponding relationship between 0-9 and base 10 is: 0-9 corresponds to 0-9. The number of base 10-15 corresponding to N can be represented by the number of 0 Murray-(Nmuri 1) that exceeds 9 with the letter Amurf.
That is, it is composed of the character: 012345679ABCDEF
Hexadecimal numbers in C must start with 0x. For example, 0x1 represents a hexadecimal number. And 1 represents a decimal system. In addition, such as: 0xffPerson0xFFJOX102A, and so on. The x is also case-insensitive. (note: the 0 in 0x is the number 0, not the letter O)
So the regular match for programming languages such as C or C++ is:
\ b0 [xX] [0-9a-fA-F] +\ b
He can play Standard PvP match.
0xDEADBEEF 0xdeadbeef 0XDEADBEEF 0Xdeadbeef 0x12345678
Can't match.
12345678 deadbeef has finished reading this article, I believe you have some understanding of "how to write regular matching in hexadecimal in programming language". If you want to know more about it, please follow the industry information channel. Thank you for reading!
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.