javascript spilt to get part of the word
<p>I tried use javascript spilt to get part of the word : <code>new</code> from <code>What#a_new%20day</code></p>

<p>I tried code like this:</p>

<pre><code>&lt;script&gt;
var word="What#a_new%20day";
var newword = word.split("%20", 1).split("_", 2);
alert(newword);
&lt;/script&gt;
</code></pre>

<p>But caused: </p>

<p><code>Uncaught TypeError: Object What#a_new has no method 'split'</code></p>

<p>Maybe there have more wiser way to get the word which I need. So can anyone help me? Thanks.</p>
