Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
房间信息:
单人房(男):0x3 单间(家庭):0x0
我想匹配输出的第二行:singleRoom (male): 0x3并获取0x3十六进制的值。如何在不使用“ *”模式的情况下实现它?
singleRoom (male): 0x3
0x3
*
^singleRoom \(male\): (0x[a-fA-F0-9]+)$