IT WAS AN EXAMPLE, goddamn... xD
Examples are fine. When they are valid. The point is that $replace() cannot do everything that $replacex() does without potential inaccuracies. So your statement that $replacex() was not needed is false and that needs to be clear both for you and anyone reading this.