The BBEdit grep based find and replace is a powerful tool. It really shows its strength when working on an entire folder of text files.
Create a new BBEdit Disk browser:
Open the multi-file search panel:
Enter the search and replace terms and BBEdit will search every file and return a hit list. Alternatively, the substitution can be performed automatically.