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
1.4m articles
1.4m replys
5 comments
57.0k users