<?php $s = '0.5An55.5Tik';if (preg_match('/^(\d*\.?\d+)(.*)/', $s, $m)) { echo $m[1] . "\n" . $m[2];}
Standard input is empty
0.5 An55.5Tik
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!