How to remove a property from a javascript object
<p>Say I create an object thus:</p>

<pre><code>var myJSONObject =
        {"ircEvent": "PRIVMSG", "method": "newURI", "regex": "^http://.*"};
</code></pre>

<p>What is the best way to remove the property 'regex'? i.e. I would like to end up with myJSONObject such that:</p>

<pre><code>myJSONObject ==
        {"ircEvent": "PRIVMSG", "method": "newURI"};
</code></pre>

<p>Thanks.</p>
