Page 1 of 1

Insert filename in each text file

Posted: Fri Dec 27, 2013 9:31 pm
by stekar
Hi, I need to insert the name of the file in a certain spot in hundreds of .txt files.
For a start I need it placed at the beginning of each file: \A
Is there some way of substituting \A with some expression that will insert the filename?
Thank you.

Re: Insert filename in each text file

Posted: Fri Dec 27, 2013 10:18 pm
by stekar
I just found an negative answer from 2011 in the RegEx forum:
Postby DV ยป Thu Apr 14, 2011 8:32 pm
Sorry- no way to use the filename in the replace expression at the minute.
Something to consider for future versions though. Thanks!
Does it still apply?

Re: Insert filename in each text file

Posted: Thu Jan 02, 2014 10:41 am
by DigitalVolcano
This feature is not currently implemented - It is on the wishlist though, and under consideration for version 3.