Welcome Guest, Not a member yet? Register   Sign In
How do you parse a file and pull a block of markup?
#1

[eluser]nubianxp[/eluser]
I have a remote file for example, which contains the ff:
Code:
...bunch of markups...
<div id="block-i-need-to-get">
  <div>some content</div>
  <div>some more content</div>
</div>
...more bunch of markups...

what i need is that particular code block only, and i understand that there's a preg_match() function that can be used for this, the problem is that, i don't know how to construct the code that will do it... any tips/links/snippets?

thanks in advance.


Messages In This Thread
How do you parse a file and pull a block of markup? - by El Forum - 05-03-2009, 06:26 PM
How do you parse a file and pull a block of markup? - by El Forum - 05-03-2009, 06:44 PM
How do you parse a file and pull a block of markup? - by El Forum - 05-04-2009, 01:31 AM
How do you parse a file and pull a block of markup? - by El Forum - 05-04-2009, 04:45 AM
How do you parse a file and pull a block of markup? - by El Forum - 05-04-2009, 04:47 AM
How do you parse a file and pull a block of markup? - by El Forum - 05-04-2009, 04:57 AM
How do you parse a file and pull a block of markup? - by El Forum - 05-04-2009, 05:03 AM
How do you parse a file and pull a block of markup? - by El Forum - 05-04-2009, 05:04 AM
How do you parse a file and pull a block of markup? - by El Forum - 05-04-2009, 12:53 PM
How do you parse a file and pull a block of markup? - by El Forum - 05-04-2009, 12:59 PM
How do you parse a file and pull a block of markup? - by El Forum - 05-04-2009, 03:13 PM
How do you parse a file and pull a block of markup? - by El Forum - 05-04-2009, 07:19 PM
How do you parse a file and pull a block of markup? - by El Forum - 05-27-2009, 09:38 AM
How do you parse a file and pull a block of markup? - by El Forum - 05-27-2009, 09:57 AM
How do you parse a file and pull a block of markup? - by El Forum - 05-27-2009, 10:01 AM
How do you parse a file and pull a block of markup? - by El Forum - 05-27-2009, 10:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB