title: PHP regex and preg_replace issue 3
body: <p>i want to transform this :</p>
  
  <pre><code>$text='{i:0;s:8:"Par mail";}';
  </code></pre>
  
  <p>to :</p>
  
  <pre><code>$text="Par mail";
  </code></pre>
  
  <p>and </p>
  
  <p>$text='{i:0;s:8:"Par mail";i:1;s:7:"Par fax";}';</p>
  
  <p>to :</p>
  
  <p>$text="Par mail | Par fax";</p>
  
  <p>And others to the 4th expression</p>
  
  <p>For this I use the PHP function <code>preg_replace</code></p>
  
  <pre><code>$text = preg_replace('/{i:[^\\[]?;s:[^\\[]?:"(.*?)";i:[^\\[]?;s:[^\\[]?:"(.*?)";/}','"$1 | $2"', $text);
  </code></pre>
  
  <p>I need some help, the enter format must be exact for transform the text.
  Cordially</p>