Search and replace all files recursively

The g parameter at the end of the regex will replace globally – all instances of string1.

Alternatively with rpl:

References: