fork download
  1. <?php
  2.  
  3. $array = array_filter(preg_split("~(?=[A-G])~", trim("{A''BsCb}", '{}')));
  4.  
  5. var_dump($array);
Success #stdin #stdout 0.01s 52488KB
stdin
Standard input is empty
stdout
array(3) {
  [1]=>
  string(3) "A''"
  [2]=>
  string(2) "Bs"
  [3]=>
  string(2) "Cb"
}