Click to See Complete Forum and Search --> : search


Genuine_girl
03-22-2004, 08:56 AM
The problem:
I want to search for lets say "foo";
so i got:

var string = 'test foo text and foo and al lot more text foo';

now I want ik to return the caraternumber of all the foo's in my string. If I use

string.search(/foo/gi);

it returns only the first one....

I would like to put the results in an array... How must I do this?

:) Ingrid