标签: character-encoding binary
我正在尝试检查textbox1的字符集是否包含二进制文件,但遗憾的是这不起作用。任何帮助表示赞赏...
Dim binarycheck As Boolean If binarycheck = textbox1.Text Like "[0-1]" Then MessageBox.Show("Already in binary form!") end if
答案 0 :(得分:0)
尝试
Regex.IsMatch(inputString, "^[01]+$");