<?php $str = "oiEusouMuitoLegal"; echo preg_replace('/(?<!\ )[A-Z]/', ' $0', $str);
Standard input is empty
oi Eusou Muito Legal
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!