function [a]= mystrsplit(str, delim)
   a= regexp(str,regexptranslate('escape',delim),'split');
end
   
%adapted from https://stackoverflow.com/questions/35325912/is-there-an-alternative-to-strsplit