<script language=javascript>
str="11-aaaa 1-bbb 22-大大大";
re=/\d+\-([^\s]+)/g
var strArray=new Array()
strArray=str.match(re)
for(var i=0;i<strArray.length;i++)
{
re.test(str);
strArray[i]=RegExp.$1;
}
alert(strArray);
</script>
str="11-aaaa 1-bbb 22-大大大";
re=/\d+\-([^\s]+)/g
var strArray=new Array()
strArray=str.match(re)
for(var i=0;i<strArray.length;i++)
{
re.test(str);
strArray[i]=RegExp.$1;
}
alert(strArray);
</script>
<script language=javascript>
str="11-aaaa 1-bbb 22-大大大";
re=/\d+\-([^\s]+)/g
while(p=re.exec(str)[1])
{
document.write(p+"<br>")
}
</script>