in reply to need a regex

Look at the substitution operator and the /s modifier in perlre.