I have a really long string in a certain pattern such as userAccountName: abc userCompany: xyz userEmail: [email protected] userAddress1: userAddress2: userAddress3: userTown: .....and so on. This pattern repeats.
I need to find a way to process this string so that I have the values of userAccountName:, userCompany: etc. (i.e. preferably in an associative array or some such convenient format).
Is there an easy way to do this or will I have to write my own logic to split this string up into different parts?