Friday, April 20, 2012

Javascript Next Index position of character

//The following logic useful for C# also

int characterpos = -1;
for ( int i = 0; i < 10; i++ )
{
  characterpos = s.indexOf( 'searchcharacter', characterpos + 1 ); 


}

No comments:

Post a Comment