Guest User

Untitled

a guest
Jun 24th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.04 KB | None | 0 0
  1. <?php
  2. echo "<pre>";
  3. //print_r($_POST);
  4. $html = $_POST['volvodom'];
  5.  
  6. $content_match = '/ctl00_MasterContentForm_Panel3(.*?)ctl00_MasterContentForm_Q3ErrorInfo/';
  7. preg_match($content_match, $html, $content);
  8. //echo $content[0];
  9.  
  10. $sales = array(
  11. //  'full interviews' => '/<td style="word-wrap:break-word;font-style:normal;font-family:Arial;font-size:8pt;font-weight:700;text-decoration:none;unicode-bidi:normal;color:Black;direction:ltr;layout-flow:horizontal;writing-mode:lr-tb;vertical-align:middle;">(.*?)<\/td>/',
  12.    'title' => '/<td style="word-wrap:break-word;font-style:italic;font-family:Arial;font-size:8pt;font-weight:400;text-decoration:none;unicode-bidi:normal;color:Black;direction:ltr;layout-flow:horizontal;writing-mode:lr-tb;vertical-align:middle;">(.*?[^<]*)<\/td>/',
  13.     'number' => '/<span style="font-family:Arial;font-size:8pt;font-weight:700;font-style:normal;text-decoration:none;color.*?;">(.*?)<\/span>/',
  14. );
  15.  
  16. foreach ($sales as $key => $match)
  17. if(preg_match_all($match,$content[0], $results))
  18. print_r($results[0]);
  19. echo "<hr />";
Add Comment
Please, Sign In to add comment