How to extract text using regex in Actionscript?

Posted by Lost_in_code on Stack Overflow See other posts from Stack Overflow or by Lost_in_code
Published on 2010-05-06T08:21:52Z Indexed on 2010/05/06 8:38 UTC
Read the original article Hit count: 311

Filed under:
|
|
|

In the HTML below:

<a href="link1.php">1</a><a href="link2.php">2</a><a href="link3.php">3</a>

How do I extract link1.php,link2.php,link3.php and push them into an array using regex? (There could be N number of <a> tags in the text)

[Edit] I'm aware the regex for this is something like href="([^"])*". But I'd like to know how to go about this in Actionscript. Specifically, how can they be pushed into an array in Actionscript?

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about as3