Klez Posted December 14, 2005 Report Share Posted December 14, 2005 man ir teksts kuraa ira IP adreses ... jautaajums ... gan jau ka ar kaut kaadaam preg fcijaam var no teksta izvakt visus vaardus, kuri satur cetrus punktus, jo IP adresee ira 4 punkti ... man jautaajums taads: ar ko to var izdariit ? ar kuraam no preg vai ereg ? Link to comment Share on other sites More sharing options...
bubu Posted December 14, 2005 Report Share Posted December 14, 2005 (edited) pofig ar kurām. Atšķirās tikai sintakse. $text = preg_replace("#\b(?:[^.\s]+\.){3}[^.\s]+\b#", "", $text); IP adresēm jābūt atdalītām ar ne-burtu, ne-ciparu, ne-underscori. Edited December 14, 2005 by bubu Link to comment Share on other sites More sharing options...
Roze Posted December 14, 2005 Report Share Posted December 14, 2005 IP Addresses http://www.regular-expressions.info/examples.html Link to comment Share on other sites More sharing options...
Klez Posted December 14, 2005 Author Report Share Posted December 14, 2005 paldies visiem par helpu :) Link to comment Share on other sites More sharing options...
Recommended Posts