getting a specific word using .match and regular expression not working
<p>I am having a little trouble with regular expression.</p>

<p>I want to match a regular expression in  a sentence.</p>

<p>Example :</p>

<pre><code>John has two candy ::123::
</code></pre>

<p>and i am using this code to look for it:</p>

<pre><code>var getid = x$('div').html().match(/::([^:]+)::/g);
</code></pre>

<p>To get the 123 our of the sentence.</p>

<p>So what's my problem here?
I kept on getting an undefined value for getid var.</p>
