Documentation Mistake of regexp
I just encountered this too. MATLAB and Octave allow nested functions to access variables...