let str = '@asd[34345345]@asd[sdfsdf] @asd[sdfsdf] @asd[sdfsdf] @asd[sdfsdf] '
'@asd[34345345]@asd[sdfsdf] @asd[sdfsdf] @asd[sdfsdf] @asd[sdfsdf] '
匹配到第一个 @asd[34345345]
@asd[34345345]
^@.*?[.*?]
ref:
https://deerchao.cn/tutorials...
https://tool.oschina.net/regex
2.1m questions
2.1m answers
60 comments
57.0k users