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.
我有以下正则表达式:
({(?!d})(?!{)(?<!{{)[^}]+})
它在花括号“{}”内匹配任何数字/字符串,我需要将其扩展为也匹配两个花括号之间的不匹配字符串/空格,如下所示
{}
你不只是将+(一个或多个)更改为*(零个或多个)吗?
({(?!d})(?!{)(?<!{{)[^}]*})