If i use indexOf(), can i find last occurrence of a character or a substring in the invoking string (or) can i use lastIndexOf() ?
Prashant Ladha
Greenhorn
Joined: Feb 06, 2008
Posts: 8
posted
0
Also, please look at regex.
Prashant Ladha
Greenhorn
Joined: Feb 06, 2008
Posts: 8
posted
0
Originally posted by kri shan: If i use indexOf(), can i find last occurrence of a character or a substring in the invoking string (or) can i use lastIndexOf() ?
yes, with lastIndexOf(String) you would get the last occurrence of that string.