IMDB Genre (get_match)

Discussion in 'PHP' started by MyVodaFone, May 6, 2010.

  1. #1
    I'm able to get the Genre information needed, however along with it comes See more >>

    Could someone look at the following and suggest something, thanks...

    I'm trying to remove See more >> from the given result.

    
    $genre= strip_tags(get_match('/<h5[^>]*>Genre:<\/h5>(.*)<\/div>/isU',$imdb_content));
    
    PHP:
    Like would it be just as easy to run a preg_match after I get my first result or does anyone see something I'm missing ?

    EDIT:
    
    $genres= strip_tags(get_match('/<h5[^>]*>Genre:<\/h5>(.*)<\/div>/isU',$imdb_content));
    $genre = preg_replace('#See more#','',$genres);
    
    PHP:
    Will of course remove "See more" from my result but I'm having problem removing the " » " symbol, any suggestions ?

    FINAL EDIT:
    Its okay I got it.

    
    $genres= strip_tags(get_match('/<h5[^>]*>Genre:<\/h5>(.*)<\/div>/isU',$imdb_content));
    $genre = preg_replace('#See more(.*)#','',$genres);
    
    PHP:
    Thanks for looking anyway....
     
    Last edited: May 6, 2010
    MyVodaFone, May 6, 2010 IP
  2. szalinski

    szalinski Peon

    Messages:
    341
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    dammit, if only someone would make this an imdb mod for ipb3 :(
     
    szalinski, May 7, 2010 IP