I have string which contain white space like
string str="Option (A) and option ( B ) and (c )"
If and i want to search (A) (B) (C) position and length I know I can use string.replace(" ","") and search.
Here I know (B) is there but due to white space I am not able to get correct Index and Length .
For example in this case I want str.IndexOf("(B)",0) should return 22(I calculated manually). and also get length I mean my program should know here (B) start index=22 and length=9 (here length of (B) is not 3 because in string due to white space its increase to 9.
Thanks
str.replace?\(\w*B\w*\).