Batch with serveral find/replace actions

A place to try and solve your RegEx problems.
Post Reply
D1Knauer
Posts: 3
Joined: Mon Jul 21, 2014 2:54 pm

Batch with serveral find/replace actions

Post 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
User avatar
DigitalVolcano
Site Admin
Posts: 1725
Joined: Thu Jun 09, 2011 10:04 am

Re: Batch with serveral find/replace actions

Post 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.
Post Reply