preg_split()
preg_split("/(?!#)#(?!#)/", $string, -1, PREG_SPLIT_NO_EMPTY);
preg_split("/(?<!#)#(?!#)/", $string, -1, PREG_SPLIT_NO_EMPTY);