title: Regex/ code to fix corrupt serialized PHP data.
body: <p>I have a massive multidimensional array that has been serialised by PHP. It has been stored in MySQL and the data field wasn't large enough... the end has been cut off... I need to extract the data... <code>unserialize</code> wont work... does anyone know of a code that can close all the arrays... recalculate string lengths... it's too much data to do by hand.</p>
  
  <p>Many thanks.</p>