fert Posted February 15, 2007 Share Posted February 15, 2007 i have this code preg_match_all("/<a href=\"(.*?)\">/",$result,$matches); it's suppose to match things like: <a href="whatever.site">link[/url] but it doesn't and i can't see why Quote Link to comment Share on other sites More sharing options...
effigy Posted February 15, 2007 Share Posted February 15, 2007 It does: <pre> <?php $result = '<a href="http://www.phpfreaks.com">'; preg_match_all("/<a href=\"(.*?)\">/", $result, $matches); echo htmlspecialchars($matches[0][0]); ?> </pre> Do the a tags contain other attributes? Quote Link to comment Share on other sites More sharing options...
fert Posted February 16, 2007 Author Share Posted February 16, 2007 nope Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.