[英]How to match the following output using regular expression
The room information: 房间信息:
singleRoom (male): 0x3 singleRoom (famle): 0x0
I want to match the second line of the output: singleRoom (male): 0x3
and get the value 0x3
which is hexadecimal. 我想匹配输出的第二行: singleRoom (male): 0x3
并获取值为0x3
的十六进制值。 how to achieve it without using the " *
" pattern? 如何在不使用“ *
”模式的情况下实现它?
^singleRoom \\(male\\): (0x[a-fA-F0-9]+)$
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.