How to collect data which is in table at web page?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • techfortune
    New Member
    • Oct 2010
    • 1

    #1

    How to collect data which is in table at web page?

    I got the data by matching preg_match_all< table>,<tr>,<td >
    but cant be to extract the data for particular table
    in that table i got particular data which is in <span>,
    <td>or <a> rather than i got whole <td> or <a> data


    code refer::

    Code:
    $pat2 = "|<[td>]+(.*)</[td>]+>|U";
    preg_match_all($pat, $result, $outp,PREG_SET_ORDER);
    print_r(outp);
    Last edited by Dormilich; Nov 2 '10, 06:28 AM. Reason: please use [CODE] [/CODE] tags when posting code
  • dlite922
    Recognized Expert Top Contributor
    • Dec 2007
    • 1586

    #2
    you need to change your regex to match the data.

    Since I don't have sample data, how can I help you?

    We'll need all possible variations of your data to create a regex that can capture your data.



    Dan

    Comment

    Working...