I'm struggling to get this working.
I have a regex pattern as: ".*(${.*}).*"
And a string variable myVar = "name = '${userName}' / pass = '${password}'"
I have a hashmap which stores values, in this case "${userName}" would have a value of "John Doe" and "${password}" would have a value of "secretpwd".
How can I loop all found matches in myVar (in this case "userName" and "password")? Then I could loop each match found and request their corresponding value from the hashmap.
Thanks!