<?php $in = '/123.456.789.10:111213';preg_match_all('</(.+)[:]>', $in, $matches);var_dump($matches[1][0]);
Standard input is empty
string(14) "123.456.789.10"
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!