regex:search character still not perfect

Posted by klox on Stack Overflow See other posts from Stack Overflow or by klox
Published on 2010-06-15T10:05:08Z Indexed on 2010/06/15 10:32 UTC
Read the original article Hit count: 193

Filed under:
|
|

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..

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about regex