12-21-2009, 08:16 PM
|
#4 (permalink)
|
|
The Visitor
Join Date: Dec 2009
Posts: 2
Thanks: 0
|
If I take out the quotes around the condition and don't escape the quotes inside the condition,
PHP Code:
$search_str = '<td align="right" valign="top"><h1>(.*)</h1></td>';
$search_str = str_replace("/", "\\/", $search_str);
$condition = '/'.$search_str . '/i';
preg_match($condition, $line, $matches);
it seems to work.
|
|
|
|