Thanks for the reply. I do have STREAM::disable in the HTTP_REQUEST as well, just didn't post that portion. My bad.
I should have clarified what I was trying to resolve with my regex. I'm want to be able to strip everything before the ~ even if it is multiple levels deep. Unfortunately I don't know the exact depth that the tilde could occur. So while I could continue adding depths to your example, I'd like to find a cleaner way. If not then I'll just do a few depths and see if that doesn't resolve the issue.
On a side note, what tag should I use for HTML so that you can see the code rather than it trying to render it?