如何用javascript脚本的正则表达式在字符串中取出仅仅是数字符号的值
------解决方案--------------------
<textarea id=textarea1>
wdhaiwqdnsn2167128nxcuswn1236123
21983wrehedn3278463sjadas
</textarea>
<script>
alert(aaa(textarea1.value))
function aaa(x)
{
var rtn= " ";
var arr = x.match(/\d+/ig);
for(i=0;i <arr.length;i++)
{
rtn += arr[i] + "\n ";
}
return(rtn);
}
</script>