A
aliensite
How do I get expression to output "24"?
<script>
var str = "dog3cat24z"
var re = /\D/g;
var lastNum = str.replace(re, "") // lastNum should be 24
document.write(lastNum)
</script>
Thanks
<script>
var str = "dog3cat24z"
var re = /\D/g;
var lastNum = str.replace(re, "") // lastNum should be 24
document.write(lastNum)
</script>
Thanks