title: Regex to replace hash-enclosed `##WORD=123##` to square bracketed`[object word=123]`
body: <p>I want to replace hashtags with square brackets and add a word after the first square bracket and all string need to be lower case. </p>
  
  <p>Example string : </p>
  
  <pre><code>$str = "This is some text  
  &lt;p&gt;##IDOBJECT=784##&lt;/p&gt; and another some text 
  &lt;p&gt;##IDOBJECT=1509##&lt;/p&gt;
  &lt;p&gt;##LATESTARTICLESHOME=321##&lt;/p&gt;
  &lt;p align=\"center\"&gt;##IDOBJECT=321##&lt;/p&gt;";
  </code></pre>
  
  <p>I want to replace <code>##IDOBJECT=123##</code> formated strings with <code>[object idobject=123]</code>. Note that here extra <code>object</code> word added after first <code>[</code> bracket and <code>IDOBJECT</code> string converted to <code>idobject</code> . 
  I tried this <code>/(\##.*?\##)/</code>  regex to find those strings but unable to replace as I described.</p>