Split String using delimiter that exists in the string
<p>I have a problem and I am wondering if there is any smart workaround.</p>

<p>I need to pass a string through a socket to a web application. This string has three parts and I use the '|' as a delimiter to split at the receiving application into the three separate parts.</p>

<p>The problem is that the '|' character can be a character in any of the 3 separate strings and when this occurs the whole splitting action distorts the strings.</p>

<p>My question therefore is this:
Is there a way to use a char/string as a delimiter in some text while this char/string itself might be in the text?</p>
