1 function val=parse(str,sep1,sep2)
2 % val=parse(str,sep1,sep2)
3 % A simple string parser.
5 % Search the string str for the pair sep1 ... sep2 and return the substring
14 error(['beginning string ',sep1,' must occur exactly once'])
16 p1 = p1 + length(sep1);
20 error(['matching end string ',sep2,' not found'])