我遇到以下正则表达式的问题: http://regex101.com/r/kH7eH4/3
第一部分是我想要的,但是当我在“消息”中使用({{variable}})时,正则表达式会很快停止。 任何解决方案?
我的正则表达式:@@include\(\s*["\'](.*?)["\'](,\s*({[\s\S]*?})){0,1}\s*\)
测试用例:
@@include('./partials/message_DE.html', {"message": "text with a {{variable}}","regards":"__('Groet, het SnappCar Team.')"})
@@include('./partials/message_DE.html', {"message": "text with a ({{variable}}) between brackets","regards":"__('Groet, het SnappCar Team.')"})