regex:search character still not perfect
- by klox
i have this code:
<script type="text/javascript">
var str="KD-R35H2UND";
var patt1=/b*.[EE|EJU].*D/i;
document.write(str.match(patt1));
</script>
i want script can read H2UND but it just show 2UND..