Replaces all occurances of some text or a regex pattern in a local file with some other text.

app.ReplaceInFile( file, txt, rep, options )

Example - Replace Text in File click to expand contents 

Example - Replace Regular Expression click to expand contents