Matching part of website with a regexp.
Posted
by richardverbruggen
on Stack Overflow
See other posts from Stack Overflow
or by richardverbruggen
Published on 2010-06-06T18:51:46Z
Indexed on
2010/06/06
19:02 UTC
Read the original article
Hit count: 169
With a cURL request I load a complete website into a variable: $buffer.
In the source of the site there are two labels in between which my relevant content is placed.
****** bunch of code *******
<!-- InstanceBeginEditable name="Kopij" -->
this part I want to store in a match
<!-- InstanceEndEditable -->
****** bunch of code *******
I've been messing around with preg_match and its regexp. Can someone try to help me?
Thanx in advance.
© Stack Overflow or respective owner