Jump to content

jamesmiller

Members
  • Posts

    31
  • Joined

  • Last visited

    Never

Everything posted by jamesmiller

  1. hey guys this should be a simple one but im struggling, i have the regex :- preg_match_all('!/search/(.*)/([0-9])!i', $page, $pages); and that works for the numbers between 1-9 but how would i change ([0-9]) to match any number? Thanks in advance
  2. after the PK it needs to be any number aswell ive tried a bnumber of combinations but i havent had any success
  3. Hm doesnt seem to bring up the relevant information, got it partly working with preg_match_all('!<a href="/load/(.*)?pk=(.*)>!i', $page, $pages); any suggestions on improving that
  4. hey, thank you , i am still retreiving from the page the numbers with "/" before them any idea of what needs to be done or improved? Thank you
  5. Hey guy, I need to find web links on a page that have <a href="/load/blahbla?pk=blah"> and am needing a regex to pick them out, the current code i have is :- preg_match_all('/<a href="\/load\/(.*?)?pk=/i', $page, $pages); coudl anyone help me fix my regex please? thank you in advance
  6. Hey Guys, baiscally what I have been trying to accomplish ( i know this will probably be simple but i suck at regex) is to find an occurence of two types of occurences of letters or numbers in a webpage for example 9782378746856 or 078170256X. Each match then needs to be retrieved. I have this, but there is a problem , this problem is that the when some of examples are found they are found with /078170256X and i want to exlude any example that has a / in front of it how could i go about doing this ? Thank you . james
×
×
  • 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.