I have a string like this:
let temp = 'Hi {{username}}, Your request with request id: {{requestId}} has been processed. Please contact your nearest shop.'
I want this array from the string:
['userName', 'requestId']
I know I have to somehow use regular expressions to achieve this but I can't figure out the pattern for achieving this.
NOTE: This is just an example string and I want a more general approach to solve this problem coz the string may vary.