<?php $s1 = <<<EOD This String is called „Foo“ or „Bar“ but could be formatted as „Foo“ or even „Bar“ and many more combinations. EOD; $s2 = html_entity_decode($s1, ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML5); $s3 = preg_replace( '/„(.*?)“/', '[quote=$1]', $s2 ); print_r($s3);
You have javascript disabled. You will not be able to edit any code.