Hi there,
i need a regexp to filter empty tags like
<aaa>
<bbb> </bbb>
<ccc>
<ddd a=0>
</ddd>
<eee>hello></eee>
</ccc>
<fff></fff>
</aaa>
After replacing the empty tags the result shoud be:
<aaa>
<ccc>
<eee>hello></eee>
</ccc>
</aaa>
This mean that there should be matched all whitespaces including return.
I tried out the following, which does not work correctly:
$pattern = "|<([\S]*)( .*)*>[\s*]*<\/\\1>|";
What is wrong in this pattern or how can i solve my problem?
Thanx a lot!
mash4077