Extract content between two delimiters in Flash


/ Published in: ActionScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function estraiValore(stringa, inizio, fine){
  2. var symbolPos:Number = descrizione_text.indexOf(symbol);
  3. posizione = stringa.indexOf(inizio);
  4. str = substring(stringa, posizione);
  5. str_two = substring(str, inizio.length+2);
  6. second_pos = str_two.indexOf(fine);
  7. str_three = substring(str_two, 0, second_pos);
  8. nValore = str_three;
  9. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.