Regex, String manipulation

Hi,

I have a string var “Sheet1” wherein the 1 has to increment every time.

Since i am a beginner, i am not able to identify and comprehend the regex.
If i could get some help or alternative suggestions that would be great.

Thank you,

Hi @sudharsan

Not sure why you need regex but you can just set the sheet number to an Integer variable as a counter which you increment per sheet and use it like as follows

"Sheet" + ctr.ToString()
1 Like

@sudharsan
Welcome to the forum

1 Like