Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- echo "<pre>";
- //print_r($_POST);
- $html = $_POST['volvodom'];
- $content_match = '/ctl00_MasterContentForm_Panel3(.*?)ctl00_MasterContentForm_Q3ErrorInfo/';
- preg_match($content_match, $html, $content);
- //echo $content[0];
- $sales = array(
- // '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>/',
- '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>/',
- 'number' => '/<span style="font-family:Arial;font-size:8pt;font-weight:700;font-style:normal;text-decoration:none;color.*?;">(.*?)<\/span>/',
- );
- foreach ($sales as $key => $match)
- if(preg_match_all($match,$content[0], $results))
- print_r($results[0]);
- echo "<hr />";
Add Comment
Please, Sign In to add comment