Possible Duplicate:
Regex exec only returning first match
"a1b2c3d".replace(/[0-9]/g,"x")
returns "axbxdxd" as expected.
/[0-9]/g.exec("a1b2c3d")
however only returns an array containing one item: ["1"]. Shouldn't it return all matches?
Thanks in advance!