<?php $string = 'test test test test'; echo preg_replace("/\w+\K/", '*', $string);
You have javascript disabled. You will not be able to edit any code.