<?php $array = array_filter(preg_split("~(?=[A-G])~", trim("{A''BsCb}", '{}'))); var_dump($array);
Standard input is empty
array(3) { [1]=> string(3) "A''" [2]=> string(2) "Bs" [3]=> string(2) "Cb" }
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!