How to write hexadecimal regular matching in programming language
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!