Hi EveryOne,
i’ve found the Regex Pattern but i’ve a little bug when i try to adapte for me…:
initial pattern:
[php]
preg_replace(’#[start]\s*(((?![start]|[end]).)+)\s*[end]#’, " ", $text);
[/php]
it should be work but when i try to use with {code} and {/code} the text is not replaced.
ex:
[php]
preg_replace(’#{code}\s*(((?!{code}|{/code}).)+)\s*{/code}#’, " ", $text);
[/php]
any Idea?