var result:String = myString.substr(myString.lastIndexOf('/')+1); 

 

Regards,

 

Keith Reinfeld
Home Page:  <http://keithreinfeld.home.comcast.net/>
http://keithreinfeld.home.comcast.net

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Wally Kolcz
Sent: Sunday, August 15, 2010 8:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to remove some a string till a particular
character

 

  

How can I start at the end of a string, move to the left till the first 
'/' and extract the value of what was after that first character?

I am looking for these:
"com/wallykolcz/views/portal/AdminPortal.swf" would equal "AdminPortal.swf"
"com/wallykolcz/views/myVoice/MyVoice.swf" would equal "MyVoice.swf"
"com/wallykolcz/views/windowhome/WindowHome.swf" would equal 
"WindowHome.swf"

Thanks!



<<image001.jpg>>

<<image002.jpg>>

Reply via email to