Quantcast
Channel: Adobe Community : Unanswered Discussions - AIR Development
Viewing all articles
Browse latest Browse all 2010

ActionScript 3 String Match() Help

$
0
0

Hi,

 

I have a several hyperlinks on a webpage, and I only need to store a few that have a certain pattern in a variable/array.

 

I've discovered you can do this with the match() function. I've loaded the contain on the webpage into a string, so I'm simply using the match function to try to find the pattern. The problem is, I'm not that great with reg expressions.

The hyperlinks that I want to catch are written like the following: <a href="/somename/sameForAllFiles/file.sz">Some Link</a>

 

I only need to store the content between the href=" and ">. The "sameForAllFiles" folder is what is common for all the files and what I'm trying to use in the match function, but I just can't get the expression right. Can someone write some basic sample code that I could use?

 

Thanks!


Viewing all articles
Browse latest Browse all 2010

Trending Articles