Can you help how to parse the regex i have tried a lot but not able to do.
Input : <a onclick="javascript:collapse('displayText','hideText','whyInfo-arrow-image')"><span sd:text="${whyInfoLabel}">Learn more about Authentication</span> <img id="whyInfo-arrow-image" sd:src="${downwardArrowImage}" height="20" width="20" >
Expected : sd:text="${whyInfoLabel}"
and sd:src="${downwardArrowImage}"
My attempt 1 : "/\$\{(\w*)\}/g"
it can pick only {whyInfoLabel}
& {downwardArrowImage}
My attempt 2 : "/sd.*\$\{(\w*)\}/g"
this is not able to split.
I am very new to Regex and to JavaScript.
Any help will be great.