forum

Home / DeveloperSection / Forums / How to get last index with validation?

How to get last index with validation?

Anonymous User209103-Nov-2014

im doing some experiment on how can i get specific index of string in richTextBox Control .

scenario: I need to find lastIndex of #> but doesnt match with ##>

reason (2) ## will block #

heres what i started for now:

string text = richTextBox1.Text;int lastIndexOffragment = text.LastIndexOf('#>');

Q: How can i find the real last Index of #> with validation thats its  not ##>


Updated on 04-Nov-2014
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By