Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
或示例
if(playerName.Contains("<") || playerName.Contains("-")){ }
或者我如何使用正则表达式模式检查字符串(^[-0-9A-Za-z_]{5,15}$)
谢谢
我想你是说字符串应该至少包含一个 - 或一个 < 对吗?比它
(^(?=.*[-<])[-0-9A-Za-z_<]{5,15}$)
环顾技术被用来使这成为可能