想匹配一些字符串出来,使用正则表达式应该如何编写?
1. 匹配双引号内的内容(最小匹配,且不认为\"为双引号),例如
"this is a test" -> this is a test
"\"string\"" -> \"string\"
2. 匹配大括号里的内容(最小匹配,且不认为双引号内的{}为大括号),例如
{this is a test} -> this is a test
{this is a "test"} -> this is a "test"
{this is a "{test}"} -> this is a "{test}"