There are a lot of different ways to do this. The method you choose also depends on what exactly you are trying to do.
I will list one method and from there you should be able to figure the rest out. The following is an example to find you the position (zero based index) of the first occurance of \t
Code:
string test = "this is\ta test";
int pos = test.IndexOf('\t');
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.