5 Replies Latest reply: Jul 3, 2012 7:06 PM by Ned Murphy RSS

    How to extract sections of text from textfield

    JoeA81

      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