i have been type some string inside textfield that is "KD-G435MUN2D"... i already use this code for search "UD" character from that string:
<script>
var str="KD-R435MUN2D";
var patt1=/UD/gi;
document.write(str.match(patt1));
</script>
but this code doesn't work..where is my fault?