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.
我想知道以下字符串的模式。
例子:test [123],test,123test,1234
test [123],test,123test,1234
如果字符串包含字母、数字和方括号(开头、结尾),那么模式应该匹配相同。
"[a-zA-Z\\d\\[\\]]+"
Your request is ambiguous... What about the commas? And spaces?