var startIndex = ansStr.search("><li>")+5; var endIndex = startIndex + 90; trace(ansStr.slice(startIndex,endIndex));