I have a string that looks like this:
var stringOriginal = "72157632110713449SomeDynamicText";
I want to separate this string into two substrings:
- One substring is the first 17 digits
- One substring is the rest of the string
I want these stored in two separate variables, like this:
var string1 = "72157632110713449"; //First static 17 digits
var string2 = "SomeDynamicText"; // Dynamic Text
This will split the string into vars given that the first 17 characters always go into string1 and the remainder into string2.