Hello everybody! I am using regexprep to replace a set of characters in a text file.
For example: I am trying to replace +, – , /, ) , (| occurences in my text file with |€. so i used the following code
fid = fopen('repSymbols.txt','wt');inData = fileread('equations');fprintf(fid,'%s',regexprep(inData,'[=+)-/(]','€'));fclose(fid);
But when I use this, it also replaces the occurences of dot . in the file. I don't want the dots to be replaced. Any idea on this?
Best Answer