Jump to content

get contents of page source.


hoangthi

Recommended Posts

scootstah, I don't think your code will work, because it doesn't support multiline

 

This supports multiline:

$source = file_get_contents('test.txt');
$pattern = '/<blockquote class="postcontent restore">(.*)<\/blockquote>/isU';
preg_match_all($pattern, $source, $matches);
print_r($matches);

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.