I would use String's split() method to split your string on the | character
into the Array [ "Label1", "url1", "label2Explorer", "url2", "Label3", "url3"
]. Then you can use a for-loop to walk through this 6-element array and create
a new 3-element array by combinding elements 0/1, 2/3, and 4/5.
But if the six elements in the string are grouped into three pairs of two, then
it would obviously be less work if it were stored as
Label1|url1||label2Explorer|url2||label3|url3
You could then simply split it on ||.
Gordon Smith
Adobe Flex SDK Team
From: [email protected] [mailto:[email protected]] On Behalf
Of thomas_13s
Sent: Friday, October 30, 2009 9:48 AM
To: [email protected]
Subject: [flexcoders] how can I parse this Srting in Flex
Hi All,
Label1|url1|label2Explorer|url2|Label3|url3
how can I parse this string in flex and get the label1|url1 , label2|url2,
label3|url3 seperately , Please some sample code to do this.
Thanks
Tom