How can we get multiple matches value from string and store in a variable from regex

we can use the same regex pattern:

Also have a look here: