![](/img/trans.png)
[英]How to get all the contents between two curly braces with or without using regex
[英]Get all strings between two curly braces using regex in javascript
我需要使用JavaScript获取大括号中包含的所有字符串的数组。
{{text is here}}
请注意,文本可能包含所有特殊字符,并且可能是多行,到目前为止,我已经尝试过此正则表达式测试
\{{(.*?)\}}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.