"but it is not working"
That is a very useless statement if you don't tell us in what way it is not working, or what you expected the code to do.
It is not working because:
- You've got an extra space in the name of the file in your fileread call, 'Document 8' vs 'Document8' ?
- the string ' 6; !- Minimum Number of Warmup Days' is not present in your document? Note that the same string with one less space before the 6 is present.
- Some other reason?
I suspect that your problem is point 2.
Note that if you don't know how to build regular expressions, I would recommend that you use strrep instead of regexprep.