正则表达式判断是否是数字
`c++
include
bool isNum(string str){
regex num_check("[1]+$");
return regex_match(str, num_check);
}
`
0-9 ↩︎
fighting
`c++
bool isNum(string str){
regex num_check("[1]+$");
return regex_match(str, num_check);
}
`
0-9 ↩︎