Dear All,
may be some one can comment why belows code snipet does not work.(only
one 'i' item is returned) I tried to use the g modifier in order to
get an array of values back. (My expection is
index 0 to 6 where the first index holds the last match according the
documentations I found)
My environment is Windows 2000 Server and IE6
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++
var out='';
var reg_sigs = /(i)/g;
var sigrows = reg_sigs.exec("o,i1&&i2,~i1||~i2,~i2&&i1");
if (sigrows) {
for ( i=0; i < sigrows.length ; i++) {
out = out + "\n" + i + ' ' + sigrows[i];
}
alert(out)
}
else {alert('no match')}
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++
Is the g modifier only supported for substitutions ? !
Any help and hint is welcome.
Rolf