Syn Enyo Posted July 22, 2011 Share Posted July 22, 2011 I have a stringsize=<1,1,1>,color=<0.6, 0.2, 1.0>,alpha=hidelist values = llParseString2List(llList2String(strmsg,3),[","],[]); integer i; for(i = 0; i < (values!=[]);i++) { llSay(0,llList2String(values,i)); } I get the following output [14:54:05] object: size=<1 [14:54:05] object: 1 [14:54:05] object: 1> [14:56:35] object: size=<1 [14:56:36] object: 1 [14:56:36] object: 1> [14:56:36] object: color=<0.6 [14:56:36] object: 0.2 [14:56:36] object: 1.0> [14:56:36] object: alpha=hide I want to get size=<1,1,1> and color=<0.6, 0.2, 1.0> and alpha=hidekey=value,key=value,key=value,key=value Can be any amount of pairs. So not sure how i can get it to ingore the comas in the side of < and >Any ideas? Link to comment Share on other sites More sharing options...
Void Singer Posted July 22, 2011 Share Posted July 22, 2011 llCSV2List Link to comment Share on other sites More sharing options...
Syn Enyo Posted July 22, 2011 Author Share Posted July 22, 2011 Thank you, that works. I was thinking it was going to need some type of RegEx, but i don't think LSL supports that. Link to comment Share on other sites More sharing options...
Void Singer Posted July 23, 2011 Share Posted July 23, 2011 your right on that count... point who to who I need to kill to get regex and I'll consider it a small price Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now