Mask input for time(`01:55`)
<p>I want mack a mask input for time(<code>01:55</code>) without use plugin,as only accept to user typed four number, (i mean, when user type number <code>01</code> put after it this <code>:</code> and next user type <code>55</code>), how is it?</p>

<p>This is my code that not work:</p>

<pre><code>&lt;input name="text" class="time"&gt;


$('.time').live('keyup change',function(){
    this.value = this.value.replace(^[0-1]?[0-9]{1}:[0-5]{1}[0-9]{1}, "")
});
</code></pre>

<p>Here is full code: <a href="http://jsfiddle.net/yGLsH/" rel="nofollow">http://jsfiddle.net/yGLsH/</a></p>
