Neat little regex trick

\A matches the beginning of a file. You can use this to add text like a header to multiple files at once. Likewise, \Z matches the end of a file.

Add a comment

 

Previous Post Next Post