batch insert text?

Tool for Search and Replace across multiple files.
Post Reply
Tiesto
Posts: 2
Joined: Tue Mar 17, 2015 11:42 am

batch insert text?

Post by Tiesto »

Hi

Is it possible to batch insert code/text into html files without replacing anything? Let's say i wanted to add a small code to line 26 on all files for example.


Thanks
Tiesto
User avatar
DigitalVolcano
Site Admin
Posts: 1727
Joined: Thu Jun 09, 2011 10:04 am

Re: batch insert text?

Post by DigitalVolcano »

You can use line mode on TextCrawler pro

For instance:

Using mode "Limit to Lines"
From: 26
To: 26

RegEx:
$
Replace
\r\nTHE NEW LINE

This will insert a new line after line 26. The $ symbol matches the line end, and the \r\n inserts a new one.
Tiesto
Posts: 2
Joined: Tue Mar 17, 2015 11:42 am

Re: batch insert text?

Post by Tiesto »

Awesome, works a treat. Thanks!
Post Reply