Transform text into variable

Hi,

How do I transform a text into a path to a variable?

My initial variable user_image

then a 2nd variable is created, named img_ref

Now I would like to fetch the data of user_image.img_ref where img_ref is the above variable. So with the example of the screenshots, I would like to fetch user_image.img1_04 (6).

I tried different options with concat, sprintf, regex_replace but nothing works.

ex: concat. My output is empty

ex: regex_replace. I get the output of user_image.img1_01 like if no replacement was done:

I did not find anything in the doc nor in the forum explaining how to do this.

Thanks for your assistance!

Emmanuel

2 replies