language: PHP (php 5.4.4)
date: 908 days 20 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
<?php
 
$str = 'oneTwoThreeFour';
 
preg_match_all('/((?:^|[A-Z])[a-z]+)/',$str,$matches);
 
print_r($matches[1]);
 
  • upload with new input
  • result: Success     time: 0s    memory: 13112 kB     returned value: 0

    Array
    (
        [0] => one
        [1] => Two
        [2] => Three
        [3] => Four
    )