This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
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.