String I need help with:
var string = "look1_slide2";
I need to extract the look number, which is 1
, and the slide number, which is 2
, and store them in separate variables. I think I can achieve this using Regex but I am unsure about how to do it. Can anyone provide guidance? The format of the string will always be consistent.
Thank you in advance!