I tried using regexp with specifying list outputs. According to the documentation page, 'stop'
should give me a vector of indices indicating the last locations of all the matches. It does not work. I made several guesses to eventually learn that what works is 'end'
. Then I realized that MATLAB's regexp also takes 'end'
, not 'stop'
. So I believe this is just a mistake in documentation. (My guess is that you didn't want to put end
in the function prototype because it's a reserved keyword.)