Good evening. How was your Sunday?
You could do the following so many ways, with so many tools. If you're already in TextMate though, you can still use your regex foo to do some pretty cool stuff to ranges of files.
Case in point: say you have a folder, and you want to append a string to the end of each file.
- Hit ⌘F for find
- Under "Find", type "Z"
- Under "Replace", type "Z" followed by your escaped string
- Under "Options", select "Regular Expression"
- Under "In", choose the folder containing your target text files
- Hit "Replace All"