MATLAB: How to replace a single word in a text file while maintaining all other text

MATLABregexpstring replacement

Best Answer

...
if ~isempty(match)
str = strrep(str,'ESPN','ESPN_Magazine ');
end