title: find the nth occurence of a substring in a string in java?
body: <p>I have a string that is the complete content of an html page and I am trying to find the index of 2nd occurence of <code>&lt;/table&gt;</code>. Does anyone have any suggestions on how to achieve this?</p>