I need to add after 1 line after match . Whenever there is a match this line should be added. In our case after \'{\' :
\'{\'
file_put_contents(\'/var/www/