If you just want the index of "<c>" then you should look at the String methods. If you need something more complex then you can look at regex.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
For what I'm trying to do I need to analyze a given string, for the text between the tags "<c>" and "</c>", and replace what's already in the string with the comment between those two tags.
Then you should look at the regex tutorial. But before you do that: the text you're looking for looks like xml. In case it is you should probably use an xml parser. For simple stuff regex can work fine but you'll run into serious problems once your xml gets more complex.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.