<?php $string = "Hello {replace this curley} {{but not this one}} {{{and not this one}}}"; $formatted = preg_replace('/(?!\{{2,})(\{{1}|\}{1})/'," ",$string); var_dump($formatted);
You have javascript disabled. You will not be able to edit any code.