我正在尝试使用正则表达式获取大括号内的子字符串。
假设我有以下字符串:
"This is a {nice} text to search for a {cool} substring".
我希望能够搜索nice并cool
nice
cool
javascript regex substring
javascript ×1
regex ×1
substring ×1