Help with quotes -- removing/replacing
Posted: Wed Oct 04, 2006 10:03 pm
So, i'm going to be annoying here for a sec to show what i mean... best way to describe it.
What I want to do is drop all quotes EXCEPT the most recent three. So, it would be something like [ quote ] [ quote ] [ quote ] something ((((((((all other quotes in here get stripped out since this is the third innermost quote)))))))) [ /quote ] something else [ /quote ] more something [ /quote]
Now, if i were only wanting the last quote, I think I could do that. But I'm no regex guru! Can someone give me a pointer?
See, when there's like 12 of those, it gets really annoying and breaks layouts.. as recently made in a suggestion on my forums. read it here123
What I want to do is drop all quotes EXCEPT the most recent three. So, it would be something like [ quote ] [ quote ] [ quote ] something ((((((((all other quotes in here get stripped out since this is the third innermost quote)))))))) [ /quote ] something else [ /quote ] more something [ /quote]
Now, if i were only wanting the last quote, I think I could do that. But I'm no regex guru! Can someone give me a pointer?