I inherited a code that contains the following line:
save('AllVars.mat', '-regexp', '^(?!(runData)$).');
From what I understand, this line saves all variables in the workspace except for runData. But I can't quite understand how does ^(?!(runData)$).
do the job and I couldn't find a source that can tell me this either (I don't quite know how to search for it either).
Can someone help me interpret the purpose of the symbols?