I\'m parsing some messy HTML code with PHP in which there are some redundant tags and I would like to clean them up a bit. For instance:
&
This should work, using minimum specifier:
preg_replace('/([\s]*){3,}/', '', $multibreaks);
Should match appalling constructions too.