Hi folks,

I've got the following regexp:
PHP Code:
preg_replace('#{skip receiveNews}([^{]*){/skip receiveNews}#im'''$mailMessage); 
This matches perfectly - but only if there is no "{" between my tags.
If I use it as this:
PHP Code:
preg_replace('#{skip receiveNews}(.*){/skip receiveNews}#im'''$mailMessage); 
it doesn't match.
What I want to achieve is replace evereything between the two tags and the two tags but there may be other tags between those two tags.

Examples:
Working with RegExp 1 but not 2:
this is a test.{skip receiveNews}
You can only read this if you checked the checkbox.{/skip receiveNews}
Working neither with RegExp 1 nor 2:
this is a test.{skip receiveNews}
You can only read this if you checked the checkbox.{skip something}
Please check back soon{/skip something}
{/skip receiveNews}
I experimented and read a lot - but haven't found the solution yet.
Would be really glad to see some comments & tips on this.

Thanks!