normally using a string.indexof("something") gives the first found results but how can you get the second or third indexof of the same searched string?
ok, i suck at explaining things, letme take it to the example:
i have a string like this:
#text part1#description#web link#
when i do string.IndexOf("#") i get 0 which is the first one but how can i get the second index for that character? i mean the one between the fisrt part and description or the one between description and web link?
Question
ant eater
hi,
normally using a string.indexof("something") gives the first found results but how can you get the second or third indexof of the same searched string?
ok, i suck at explaining things, letme take it to the example:
i have a string like this:
when i do string.IndexOf("#") i get 0 which is the first one but how can i get the second index for that character? i mean the one between the fisrt part and description or the one between description and web link?
thank you.
Link to comment
Share on other sites
4 answers to this question
Recommended Posts