如何才能找到带正则表达式(0-9,a-f)和(m,n,o,k)的十六进制字符?
答案 0 :(得分:0)
使用以下正则表达式:
[0-9a-fA-FmnokMNOK]
说明:
[ #Match a single character present in the group (look below)
0-9 #All numbers from 0 to 9
a-fA-F #Characters from a to f (lowercase and uppercase)
mnokMNOK #The characters m, n, o and k (lowercase and uppercase)
] #End of character group
在此处尝试:https://regex101.com/r/jT1iY3/3 - 它也会在右栏中向您解释。