Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hello Folks:
I'm pulling my hair out to accomplish the following task. I have a routine that returns a string as follows:Code: Select all
$mystring =
"
<a class="resultsLink" href="http://www.somedomain.com/goforit?url=http://www.otherdomain.com?
args=www.mydomain.com" target="1" onmouseover='window.status="";return true;' onmouseout='window.status=" ";return true;'
";(a) The beginning <a class="resultsLink"
and
(b) The final quote
Essentially, I'm trying to extract the href in the string above
Can someone recommend the PREG_MATCH call I need to make? Once I get the URL, I will call a subsequent fopen() call on it.
But I can't move forward because newbie me can't even extract the URL from $mystring
Hoping someone can guide me; unfortunately, the tutorials aren't helping me.
Thanks everyone.
Lester
scottayy | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]