Checking an ICQ number
i have a question...
i wrote this script on J to check user's ICQ number...
where is my mistake?
if an ICQ number is equal to '646546545' the result is 'true', and the same result is when icq = 'a646546545'
<script type="text/javascript" language="javascript">
var ICQ = "a646546545";
var oRegExp = new RegExp ("[0-9]{9}");
document.write (oRegExp.test (ICQ));
</script>
thank's
don't worry, be programmer
|