phorcon3 Posted February 9, 2008 Share Posted February 9, 2008 so, what it outputs is something like this: <DIV class="box227top"> <DIV class="box227bottom"> <DIV class="boxnoang"> <TABLE width="209" cellpadding="0" cellspacing="0" border="0"> <TR> <TD width="209" colspan="2" class="txt11blub">Spazio Occupato nella tua casella</TD> </TR> <TR height="3"> <TD width="209" colspan="2" height="3" class="com05a-pix"> </TD> </TR> <TR> <TD width="100" class="txt11">Web Mail 0% </TD> <TD width="109"><img src="/i05/spazio0.gif" align="absmiddle"> </TD> </TR> </TABLE> </DIV> </DIV> </DIV> </TD> </TR> <TR valign="middle"> <TD width="50"><A HREF="#"><IMG SRC="/i05/mail_pen.gif" WIDTH="46" HEIGHT="53" BORDER="0" ALT=""></A></TD> <TD width="154" class="txt13"><A HREF="/cgi-bin/webmail.cgi?ID=Ixbb0tMb_KrK67sEMHTq2NR8EoBisBa3cWJLmBRlxcAOePl0GjD7m&Act_Parse=login-inbox" class="txt13blu"><b>Leggi Mail 3</span>/3</A><div class="com05a-brk"> </div><A HREF="/cgi-bin/webmail.cgi?ID=Ixbb0tMb_KrK67sEMHTq2NR8EoBisBa3cWJLmBRlxcAOePl0GjD7m&Act_Parse=login-compo" class="txt13blub">Scrivi Mail</A></TD> <TD width="3" class="com05a-pix"> </TD> </TR> <TR> <TD width="50" class="com05a-pix"> </TD> <TD width="179" class="com05a-pix"> </TD> <!-- TD width="3" class="com05a-pix"> </TD --> </TR> </TABLE> </DIV> </DIV> </DIV> and what i need is the following code cgi-bin/webmail.cgi?ID=Ixbb0tMb_KrK67sEMHTq2NR8EoBisBa3cWJLmBRlxcAOePl0GjD7m&Act_Parse=login-compo how do i do it? i tried: <?php $html = ' <DIV class="box227top"> <DIV class="box227bottom"> <DIV class="boxnoang"> <TABLE width="209" cellpadding="0" cellspacing="0" border="0"> <TR> <TD width="209" colspan="2" class="txt11blub">Spazio Occupato nella tua casella</TD> </TR> <TR height="3"> <TD width="209" colspan="2" height="3" class="com05a-pix"> </TD> </TR> <TR> <TD width="100" class="txt11">Web Mail 0% </TD> <TD width="109"><img src="/i05/spazio0.gif" align="absmiddle"> </TD> </TR> </TABLE> </DIV> </DIV> </DIV> </TD> </TR> <TR valign="middle"> <TD width="50"><A HREF="#"><IMG SRC="/i05/mail_pen.gif" WIDTH="46" HEIGHT="53" BORDER="0" ALT=""></A></TD> <TD width="154" class="txt13"><A HREF="/cgi-bin/webmail.cgi?ID=Ixbb0tMb_KrK67sEMHTq2NR8EoBisBa3cWJLmBRlxcAOePl0GjD7m&Act_Parse=login-inbox" class="txt13blu"><b>Leggi Mail 3</span>/3</A><div class="com05a-brk"> </div><A HREF="/cgi-bin/webmail.cgi?ID=Ixbb0tMb_KrK67sEMHTq2NR8EoBisBa3cWJLmBRlxcAOePl0GjD7m&Act_Parse=login-compo" class="txt13blub">Scrivi Mail</A></TD> <TD width="3" class="com05a-pix"> </TD> </TR> <TR> <TD width="50" class="com05a-pix"> </TD> <TD width="179" class="com05a-pix"> </TD> <!-- TD width="3" class="com05a-pix"> </TD --> </TR> </TABLE> </DIV> </DIV> </DIV>'; preg_match_all('/<TD width="154" class="txt13"><A HREF="/cgi-bin/webmail.cgi?ID=(.*?)&Act_Parse=login-inbox" class="txt13blu">/', $html, $match); echo $match[1][0]; ?> but it doesnt work, can anyone tell me what im doing wrong? Link to comment https://forums.phpfreaks.com/topic/90242-curl-preg_match_all/ Share on other sites More sharing options...
phorcon3 Posted February 9, 2008 Author Share Posted February 9, 2008 nevermind, got it lol Link to comment https://forums.phpfreaks.com/topic/90242-curl-preg_match_all/#findComment-462699 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.