How to Find Ending Index of Line in java
<p>i want starting and ending index of below text...</p>

<p>Here Starting is fixed but ending word is not fixed..ending is upto line ends...</p>

<p>Line is :</p>

<pre><code>Cardiovascular:ROS:Neurological:
Cardiovascular:ROS:XYZ:
Cardiovascular:ROS:ABC:::
</code></pre>

<p>i can find starting index but how to find ending index..as it is not fixed.</p>
