If I want to search a whole page using curl and remove all hyperlinks would I use preg_replace or preg_match_all ?
preg_replace('/<a[^>]*>[B](.*)[/B]<\/a>/', '', $data);
how do I just output the (.*) and remove the a anchor/hyperlinks? I tried:
preg_replace('/<a[^>]*>(.*)<\/a>/', $1, $data);
to represent what I am trying to display, but now I'm confused...anyone give a hand?