Jump to content

jamesmiller

Members
  • Posts

    31
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jamesmiller's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. AyKay47, Thank you worked perfectly
  2. Hey guys, im currently writing a crawler to grab all text withing two html tags : <h2 class="posttitle"> <a class="entry-title" title="ANYTHING here" rel="bookmark" href="http://ANYURL">ANYTHING here</a> </h2> and i want to grab all of these so a preg_match_all for everything between <h2 class="posttitle"> and </h2> Thank you for any help
  3. Hey guys, i was wondering if there was a way to be able to give PHP a URL and then for PHP to take a screen shot of that URL? Any help would be greatly appreciated Thank you
  4. Hey Guys, I am searching through a page and only pulling certian urls from a page i have this regex:- preg_match_all('@\bhttp[s]*?(:|&#58;)//[-A-Z0-9+&#/%?=~_|$!:,.;]+[A-Z0-9+&#/%=~_|$][.*?].@i',$page,$links); this works fine for pulling out the links needed the only problem is it will only pull out the first letter after the "." and i want it to pull out all of the URLS with file extensions on for example i would like it to pull http://website.com/files/402005378/balablah.rar.html and it will only return http://website.com/files/402005378/balablah.ra Thanks for any help
  5. My apologies I was meant to put it on the end but forgot thank you for your help
  6. hey guys. sorry if this is a simple question and easy to do but i need a regex to pick out Author: anything can be here </h3> from <h3> <span class="author"> Author: </span> <span> <a href="/catalog/list_author_titles?author=John+search=search">John </a> </span> Thank you for any help,
  7. Ok sample data wise this is the URL http://www.torrentreactor.net/search.php?search=2&words=Linux&lang=
  8. my apologies the actual real sample data is <a href="/torrents/798659/Jim-avi"> and i want it to retrieve all the hrefs with /torrents/but i dont want it to reteriev the hrefs with <a href="http://www.fulldls.com/torrents/Jim" target="_blank"> thats the propper sample data, the other post i really tried the regex and it didnt work for me apologies once again
  9. Yeah it does, thank you that doesnt seem to have worked still retreiving hrefs with http in front of them
  10. Hey guys, generally i have a regular expression like this $expr = '!/blahblah/!i'; and its grabbing the hrefs with /blahblah/ but also grabbing http://www.blah/blahblah/ and i want it to exclude any hrefs with http:// before it. thank you guys
  11. im really not , i dont understand why t wont work the code i have is $expr = '%/load/(.*?)/(?:[^/"]++)%i'; if( preg_match($expr,$href)) $hrefs[] = $href; // store href } and it wont work
  12. Sorry was away for the weekend, no i havent changed it using exactly that expression and still returning all the values :-( .
  13. Thank you, still returning them all, sorry about this .
  14. Ok im not sure why it isnt working either bud, i think the /gg/ can be anything as it changes and so this is the manipulation i have got: $expr = '%/load/(.*?)/(?:[^/"]++)%i'; if( preg_match($expr,$href)) $hrefs[] = $href; // store href }
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.