Split dynamical string

One simple way is to use .Split using the character that’s consistent like the dash.

arrString = str.Split("-"c)

Then run that through a loop to extract each element and process.

For each str In arrString
Message Box str

EDIT:
Or instead just store each element directly without a loop, like,
str1 = arrString(0)
str2 = arrString(1)
str3 = arrString(2)


If the character can change other than a dash or if there are random alpha/special characters then you might consider using System.Text.RegularExpressions.Regex.Match( ) with a pattern

Hope that helps further.

Regards.