I am working on something and i need to split a string into a list based on multiple tokens.
The Input string i want to split will be formatted as such:
i have nead to have a list containing all the different fields without thier tokens in a list
currently i use:
temp1 = string.split( Input, "^" ) #splits ID and IP of caller from input temp2 = string.split( temp1, "@" ) temp3 = string.split( temp2, "#" ) commands = ( temp1, temp1, temp2, temp3)
however I feel this is very inefficient anyone got any better way?