regular expressions need help

Discussion in 'PHP' started by cornetofreak, May 9, 2008.

  1. #1
    my script searches google for links from these sites but its not getting the name from badango it works on rs

    get_urls_by_kwd("\"rapidshare.com/files\" ".$row[1],"/rapidshare\.com\/files\/(\d+)\/([^\'^\"^\s^>^<^\\^\/]+)/",1);
    get_urls_by_kwd("\"badongo.com/file\" ".$row[1],"/badongo\.com\/file\/(\d+)/",2);
    get_urls_by_kwd("\"mediafire.com/?\" ".$row[1],"/mediafire\.com\/\?(\w+)/",3);
    get_urls_by_kwd("\"sendspace.com/file\" ".$row[1],"/sendspace\.com\/file\/(\w+)/",4);
    get_urls_by_kwd("\"4shared.com/file\" ".$row[1],"/4shared\.com\/file\/(\d+)\/(\w+)\/([^\'^\"^\s^>^<^\\^\/]+)/",5);
     
    cornetofreak, May 9, 2008 IP
  2. TeraTask

    TeraTask Peon

    Messages:
    37
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well, you didn't give the function details, so that makes it hard to help, but it looks like it could just be spelling: In your post you say "badango", but in the code it says "badongo"
     
    TeraTask, May 9, 2008 IP
  3. cornetofreak

    cornetofreak Peon

    Messages:
    170
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ive done it now and i missed spelt it within my text not the code thankyou anyways and i love this forum man its the best cred goes out to everyone
     
    cornetofreak, May 9, 2008 IP