I need to split one variable into 3 variables. For example I have a variable called Data and it contains AAA00000001. I need to have them be split between the “AAA”, “0000000”, and “1”. I looked at the Split() function but didn’t get a clear example for this situation. The reason I need to do this is because I want to store these 3 variables into fields for a MySQL database.
I need to split one variable into 3 variables. For example I have a
Share
Assuming the string is ALWAYS the EXACT same length and need to be split at the SAME place, you can use
Substring().If they’re not always the same length, you’re probably going to need to use Regular Expressions.