首页
\
问答
\
如何使用正则表达式regex库表示程序集lw / sw指令?(How to express an assembly lw/sw instruction using regular expression regex library?)
如何使用正则表达式regex库表示程序集lw / sw指令?(How to express an assembly lw/sw instruction using regular expression regex library?)
我想检测用户何时输入“lw 2,3(9)”,但它无法读取括号,我使用了这段代码,但它仍然没有检测到括号。
{ R"((\w+) ([[:digit:]]+), ([[:digit:]]+) (\\([[:digit:]]+\\)) )"}
有人可以帮忙吗?
I want to detect when the user enters "lw 2, 3(9)" , but it can't read the parenthesis, I used this code but it still doesn't detect the parenthesis.
{ R"((\w+) ([[:digit:]]+), ([[:digit:]]+) (\\([[:digit:]]+\\)) )"}
Can someone please help?
更新时间:2022-01-09 16:01