fork(1) download
  1. str = "abcde\n fghij<Foobar>";
  2. expression = '(.*)<Foobar>*';
  3. [tokens,matches] = regexp(str,expression,'tokens','match');
  4. celldisp(tokens)
Success #stdin #stdout 0.22s 403520KB
stdin
Standard input is empty
stdout
tokens{1}{1} = 

abcde
		fghij