I am new to regexs.
I have this :
'@time-transform{
[bg:red;c:white]
[bg:black]
[bg:white;c:black]
}'
I want the part inside curly brackets.
>Solution :
You can split the string by regex:
const result = input.split(/({|})/)[2];