Skip navigation
Currently Being Moderated

How to extract sections of text from textfield

Jul 3, 2012 12:45 PM

Hello,

 

I have been able to extract the full HTML text from a webpage using the URLLoader and URLRequest classes and place this inside a textfield.

 

What I want to do however is to search the HTML for specific pieces of text (actually HTML tags) and then extract all the text between two specific tags, and then put that extracted text into a texfield.

 

How should I go about this? Should I manipulate the full HTML text that is already within the textfield? Or should I save this full text into a different kind of format within AS3 (i.e. not a textfield) that is more suited to searching and extracting pieces of text? Or is a textfield perfectly suited to this kind of thing?

 

I'm reasonably new to AS3 so I'm not quite sure where to start, but all I need is a nudge in the right direction.

 

Cheers,

 

Joe

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points