I'm trying to extract mustache template keys from a long string with no newlines. I currently have:
我试图从一个没有换行的长字符串中提取mustache模板键。我现在:
\{\{[^><](.+)\}\}
\[^ > <]{ \ {(+)\ } \ }
Which keeps matching *all character past each key's closing }}
until it it finds the last occurrence of }}
它通过每个键的结束}来匹配*all字符,直到找到}的最后出现
How do I get it to capture each key and move on globally?
如何让它捕获每个键并在全局上移动?
Here's a regex101 link: http://regex101.com/r/fU0iI6/1
这里有一个regex101链接:http://regex101.com/r/fU0iI6/1
Thanks
谢谢