If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.
Register Today on DNForum IT'S FREE!I'm trying to parse info from a remote site but my script isn't grabbing everything it should. My script grabs info between certain specific html tags. The script is not picking up the paired tags when they are split on two line.
eg.
<tag>grabs this ok</tag><tag>grabs this ok</tag><t
ag>does not grab this</tag>
Can anyone help me out?
Thanks.
Hmm... odd. Maybe try removing the line breaks or something? E.g.:
$string = preg_replace("\r\n","",$string);
Not sure if that'd mess up other parts of the string - does the following work?
$string = preg_replace("<t\r\nag>","<tag>",$string);
- seeing as though "\r\n" is a line break, this should be the sort of solution you are looking for.
Bookmarks