I am new to regex and still trying to wrap my head around it. I am stuck at this one point and all related questions to my problem doesnt seem to help.
I have a text varible
set text "/folders/beta_0_2_1"
I want to extract 0, 2, 1 and save them in three different variables using regex in tcl. I tried to reach through beta variable using
[regexp {/beta_} $text]
However, I am not able to figure out the part where I can extract each of those variables and then save them. Can you provide me some direction?