fork(3) download
  1. <?php
  2.  
  3. $str = "oiEusouMuitoLegal";
  4.  
  5. echo preg_replace('/(?<!\ )[A-Z]/', ' $0', $str);
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
oi Eusou Muito Legal