Robuta

https://au.mathworks.com/help/matlab/ref/lookaheadboundary.html lookAheadBoundary - Match boundary before specified pattern - MATLAB This MATLAB function creates a pattern that matches the start of pat. matchboundarypatternmatlab