I think two ~ will be enough (as I said before). My point remains: Why insist on using a delimiter if you can have a delimiter-free version without any additional trouble?
Again, I just presented a different approach to solve the same problem. What's wrong about that? Your solution is just fine, all I said about it in particular was the '~' is not a safe delimiter. Everything else is another view and has nothing to do with your solution.