- preg_replace: documentation ( source)
<?php
$link = "https://dev-staging-www.big-direkt.de/ratgeber/behandlung/patientenberatung.html";
echo PHP_EOL. $link;
$link = preg_replace('dev-staging-www.big-direkt.de', 'bigstaging:080054565456@dev-staging-www.big-direkt.de', $link);
echo PHP_EOL. $link;