I have this link below,
Code: Select all
<a href="http://domain.org/tlg/1188777994.html">MANAGER NEEDED</a>
I've been formulating for hours now and i'm completely lost i guess.
Anyone would to show the REGEX for this?
thanks in advance.
Moderator: General Moderators
Code: Select all
<a href="http://domain.org/tlg/1188777994.html">MANAGER NEEDED</a>
Code: Select all
preg_match(
'#<a\s+href="([^"]+)"\s*>([^<]+)</a>#i',
'<a href="http://domain.org/tlg/1188777994.html">MANAGER NEEDED</a>',
$result
);
print_r($result);
/*
Array
(
[0] => <a href="http://domain.org/tlg/1188777994.html">MANAGER NEEDED</a>
[1] => http://domain.org/tlg/1188777994.html
[2] => MANAGER NEEDED
)
*/