Ok, ive finalized it. Heres the code:
$text = $_POST["ips"];
preg_match_all('/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/', $text, $matches);
foreach($matches as $match){
foreach($match as $key => $val){
print $val."<br>";
}
}
To see it go here: http://phpevo.com/split.php Theres a slight glitch in it tho... If I dump in a number of IPs with this setup:
--------TEXTAREA---------
22.33.44.5522.33.44.55
22.33.44.5522.33.44.55
22.33.44.5522.33.44.55
22.33.44.5522.33.44.55
--------TEXTAREA---------
... I get unexpected results. Copy/paste those IP in the textarea and have a look. More help would be appreciated, thx.
PS: 3 numbered IPs (111.222.333.444) work as expected... but 1 and 2 numbered IPs dont (1 numbered: 1.2.3.4)(2 numbered: 11.22.33.44). Any suggestions.