greetings,
I was trying to parse this data,
but my regular expression knowledge is not enough. Could some please help to parse this: I can get the value inside the <a></a> tag, what I want is get the value inside the <a></a> if the first tag start with <p> follow by $nbsp; . Also i want to get the data inside the ( ) tag which is the word "Free Hosting"
i have here:
$var="<p> <a href=doamin.com>Webhost</a> (Free Hosting)";
preg_match("/<a[^>]*>(.*)<\/a>/", $var, $match);
$match1= $match[1];
// output: Webhost
Thanks,
eli