Hello,
I have a problem to write an algoritm which goes thrue on my String which looks like :
String myText = "<table><tr><td><input type="Text" name="address1" value="test1@test.com"></td></tr>
<tr><td><input type="Text" name="address2" value="test2@test.com"></td></tr>
<tr><td><input type="Text" name="address3" value="test3@test.com"></td></tr>
</table>";
I would like to get back with a loop all 'place' where mysearch_start="value=\""; and mysearch_finish=".com\">";
I tried like: int mysearch_start = myText.indexOf("value=\"");
int mysearch_end =
myText.indexOf(".com\">");
but I don't get back the all 3 what I would need. Is anybody has idea how could I do it?
I have a problem to write an algoritm which goes thrue on my String which looks like :
String myText = "<table><tr><td><input type="Text" name="address1" value="test1@test.com"></td></tr>
<tr><td><input type="Text" name="address2" value="test2@test.com"></td></tr>
<tr><td><input type="Text" name="address3" value="test3@test.com"></td></tr>
</table>";
I would like to get back with a loop all 'place' where mysearch_start="value=\""; and mysearch_finish=".com\">";
I tried like: int mysearch_start = myText.indexOf("value=\"");
int mysearch_end =
myText.indexOf(".com\">");
but I don't get back the all 3 what I would need. Is anybody has idea how could I do it?