Page 1 of 1

Using find/replace on multiple items in multiple text files

Posted: Wed Jul 19, 2006 2:56 pm
by decke
I have a question about using the find/replace in TextPad. :o Is there a way for Textpad find multiple items and replace multiple items in multiple files. For instance I have multiple text files with various text expressions that I want to replace with different text expressions. The text items would be a one to one replacement.

Example:
I have text.txt, text1.txt, text2.txt files. There are several text expressions in all three text files that I want to replace with different text expressions. I want to replace 'abc' with 'xyz', replace '123' with '098', and replace '101' with '202'.

Is there a way of setting up an array of text expressions and passing it to the replace function and running the replace function once? Or does each text expression have to be done one at a time with the replace function? :?:

Re: Using find/replace on multiple items in multiple text fi

Posted: Thu Jul 20, 2006 6:03 am
by ben_josephs
decke wrote:Is there a way for Textpad find multiple items and replace multiple items in multiple files.
No. But you can do that with WildEdit (http://www.textpad.com/products/wildedit/).
decke wrote:I want to replace 'abc' with 'xyz', replace '123' with '098', and replace '101' with '202'... Is there a way of setting up an array of text expressions and passing it to the replace function and running the replace function once?
In WildEdit:
Find what: (abc)|(123)|(101)
Replace with: ?1(xyz):?2(098):?3(202)

[X] Regular expression
[X] Replacement format
Search for conditional expression in WildEdit's help.