Uldis Posted February 26, 2011 Report Share Posted February 26, 2011 Vajag no šī dabūt arā teksta daļu. <h2>Anniversary Personalized Signature Platter</h2> Izmantoju : $adr="http://www.adrese.lv"; $str = file_get_contents($adr); preg_match_all("/h2\">(.*)<\/h2>/", $str, $str); $rezultāts = $str[1][0]; , bet izskatās, ka kaut kas nav riktīgi. Nekad neesmu īsti izpratis preg_match_all - varbūt kāds uz ātru aci var pateikt kur problēma. Paldies! Quote Link to comment Share on other sites More sharing options...
m8t Posted February 26, 2011 Report Share Posted February 26, 2011 (edited) preg_match_all("/h2\">(.*)<\/h2>/", $str, $str); Kas tas? Izdzes un ies. Edited February 26, 2011 by m8t Quote Link to comment Share on other sites More sharing options...
Uldis Posted February 26, 2011 Author Report Share Posted February 26, 2011 Aizgāja paldies! :) preg_match_all("/h2\">(.*)<\/h2>/", $str, $str); Kas tas? Izdzes un ies. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.