The original version of this page can be found at : http://forum.makemusic.com/default.aspx?f=12&m=97690
Posted By : markburgess - 11/19/2004 12:37 PM
Is there a way to (batch) replace text in a number of files that begins with the same three letters but ends differently?
In other words
search 'text blocks' "PGM (some numbers go here, they are different in every file)" replace "" (to get rid of the text)
Thanks
Mark Burgess
Warner Bros. Publications

Posted By : Robert P. - 11/21/2004 12:29 PM
Hi Mark,

This seems quite straightforward:

batch process folder // or 'subfolders' for hierarchical process, or 'open docs' when no folder
search "PGM" and replace ""
//save


...should work as expected.

By default, TSAR look for any occurence. If you wanted to scan whole words only, you would simply say 'search "..." whole words replace "..." '

Robert

Post Edited (Robert PiƩchaud) : 11/21/2004 4:32:51 PM GMT


Posted By : markburgess - 12/9/2004 10:19 AM
Thanks Robert. I wasn't clear on the "whole word" thing.
MB