cyphix
05-04-2006, 01:09 PM
Hey guys.... I'm using this code:
$cat_names[] = preg_replace('~.*<li><a href="/search\.php\?cat=1">(.*?)</a></li>.*~is', "$1", $main_line);
Now...... shouldn't it be returning what is between the <a></a> tags (The name of the link)? Problem is...... it's returning the whole line.
Any help?
$cat_names[] = preg_replace('~.*<li><a href="/search\.php\?cat=1">(.*?)</a></li>.*~is', "$1", $main_line);
Now...... shouldn't it be returning what is between the <a></a> tags (The name of the link)? Problem is...... it's returning the whole line.
Any help?