Split a string

Hi, I have a string in DB which is: "<key>PROJECT_CODE</key><style>BOLD</style><color>#EF0010</color>"

and I want your help to split this into different variables, like after splitting the above string 

var1 will have value = PROJECT_CODE,

var2 will have value = BOLD,

var3 will have value = #EF0010

Thanks in advance!

  Discussion posts and replies are publicly visible