<?php $str = 'hi test1="12c4 ab3d" blablabla test1="abcd 3456 sdfs 2435"'; echo preg_replace('~\btest1="[^"\s]*\K[^"]+~', '', $str);
You have javascript disabled. You will not be able to edit any code.