检查字符串是否仅包含以下字符的最佳和最简单方法是什么:
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_
Run Code Online (Sandbox Code Playgroud)
我想要一个像这样的伪代码的例子:
//If String contains other characters
else
//if string contains only those letters
Run Code Online (Sandbox Code Playgroud)
请和谢谢:)