View Single Post
Old 12-21-2009, 08:16 PM   #4 (permalink)
girvine
The Visitor
 
Join Date: Dec 2009
Posts: 2
Thanks: 0
girvine is on a distinguished road
Default

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.
girvine is offline  
Reply With Quote