[Solved] php regex replace clear span code September 18, 2022 by Kirat preg_replace('/(<span.*\/span>)/u', '', $str); 3 solved php regex replace clear span code