replace wrong input from input field
<p>I'm trying to replace wrong input form input field. Is this any way to made this code work? </p>

<pre><code>&lt;span class="input-bet"&gt;
  &lt;input type="text" placeholder="0" data-required="true" maxlength='6'/&gt;
&lt;/span&gt;

$('.input-bet &gt; input').on('input propertychange paste', function(e) {
 var youreg = /^[ю]+/gi;
 for (var i = 0;i&lt;this.value.length;i++){
     if(this.value[i].match(youreg)){
         this.value[i] = this.value[i].replace(youreg, '.');
     }
 }
</code></pre>

<p>if someone need - here is working solution 
<a href="https://jsfiddle.net/DronSKM/pmj0w64k/1/" rel="nofollow">fiddle</a></p>