Updated to use regexp instead of strsplit, for backwards compatability
with older versions of MATLAB, specifically Baccus lab stimulus mac.