How to remove parts from a string

So basically lets say i have a string “Level_01” if i just wanted to keep the “01” in a string, or preferably in an int variable how would this be done.

Hey you would need to use a string split.

string[] x = "Level_01".split('_');

This way you could display the values in the array as:

x[0] = "Level"
x[1] = "01"

Hope this is what you was looking for.