https://multiplefilemaker.com/
find replace php

How do I find and replace text in multiple files?

find replace php
How do I find and replace text in multiple files?

You want to use regular expressions. The \b matches a word boundary. $text = preg_replace('/\bHello\b/', 'NEW', $text) . If $text contains UTF-8 ...