Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Grabing Data Between Two Code Blocks

Grabing Data Between Two Code Blocks

Scheduled Pinned Locked Moved Web Development
regexjsonhelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    munklefish
    wrote on last edited by
    #1

    Hi, I have a page that uses screen scrape a page (doesnt have an api) but need to do some customisation with this data. So i need to be able to pick out the data between '' & '' tags. Im assuming the way to do this is via regualr expression (regex)? However im no Regex expert and am in need of some serious help. If anyone could give me the expression i need, i will be able to work out the code required to apply it. Or even a good pointer would be of benefit. Many Many Thanks. :rolleyes:

    modified on Monday, July 14, 2008 9:58 AM

    P 1 Reply Last reply
    0
    • M munklefish

      Hi, I have a page that uses screen scrape a page (doesnt have an api) but need to do some customisation with this data. So i need to be able to pick out the data between '' & '' tags. Im assuming the way to do this is via regualr expression (regex)? However im no Regex expert and am in need of some serious help. If anyone could give me the expression i need, i will be able to work out the code required to apply it. Or even a good pointer would be of benefit. Many Many Thanks. :rolleyes:

      modified on Monday, July 14, 2008 9:58 AM

      P Offline
      P Offline
      Perspx
      wrote on last edited by
      #2

      Something like this?:

      function getData()
      {
      var els = document.getElementsByTagName("option");

      for(i=0;i<els.length;++i)> // Do what you want with the option element (els[i]) here
      }
      }

      Hope this helps, --Perspx

      "The Blue Screen of Death, also known as The Blue Screen of Doom, the "Blue Screen of Fun", "Phatul Exception: The WRECKening" and "Windows Vista", is a multi award-winning game first developed in 1995 by Microsoft" - Uncyclopedia

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups