Postby shooraijin » Sun Nov 09, 2003 8:46 am
If it's in Perl (crosses fingers), or even if it's still PHP albeit with the Perl regular expressions package compiled in, something like this should work:
s/\[spoiler[^]]*\][^[]*\[\/spoiler[^]]*\]//sig;
However, I notice there are no vB code tags in the E-mails that are sent out anyway, so something must be pulling them.
Maybe you could piggyback on the code that yanks out quotations, since those definitely don't appear in the E-mail messages (which led to some private hilarity when I was unable to figure out the context of a few messages a while ago).
"you're a doctor.... and 27 years.... so...doctor + 27 years = HATORI SOHMA" - RoyalWing, when I was 27
"Al hail the forum editting Shooby! His vibes are law!" - Osaka-chan
I could still be champ, but I'd feel bad taking it away from one of the younger guys. - George Foreman