I want to get all work in string - that are between the pair of {word}
Example:
payment://pay?id={appid}&transtoken={transtoken}
Result expect:
["appid", "transtoken"]
With regex partern: {\w+}
, I only can get [{appid}, {transtoken}]
.
Please help me with the problem.