Page 1 of 1

Batch with serveral find/replace actions

Posted: Wed Aug 20, 2014 2:46 pm
by D1Knauer
The standard find/replace for a single action works for every case:
for example find # and replace with *
or: find <!--#** and replace <!--***

But how could I write more than one action in a batch file?
It has to run serialized: first search through all files for the first command and replace it,
then search through all files for the second command and replace it ... and so on.

In the batch, the regex <!--#** and replace <!--*** doesn't run
Failure message: "geschachtelter Quantifizierer" (maybe nested quantizer?)

Any help? Thanx

Re: Batch with serveral find/replace actions

Posted: Fri Aug 29, 2014 11:24 am
by DigitalVolcano
Have you tried unchecking the 'Regular expression' box next to each line in the batch file? (remember to click 'Update current line' after changing). This will stop it treating the line as a regular expression and will process it as a standard find-replace.