I need a solution for string str = "Reflectors cycleId cycle fgsd sdbnkjsd fsdfj cycle fsjhdf cycle_Id"
I need to find first cycle occurrence in the given string since this string could be very long string so can not split on space base ...whatever string fuction I found on .NEt it return me cycle of cycleId not exact cycle word ....?So can any one provide solution....one more limitation that it sud be run in 1.1 framework....
I have ued IndexOf which retun of cycleID not cycle
Thannks in advanced.....looking forward for any solution...
Sailaja YPosted Mar 22, 2010, 7:43 AM
Use str.IndexOf("cycle ") to get the first occurence of the word cycle.
Dont forget to give the space after the word. This space would work as differentiator to filter the other words like cycleId and cycle_Id etc.
If this helped you, mark it as answer.
Regards,
Anupam SoniPosted Mar 25, 2010, 12:12 PM