<img src='http://res.cloudinary.com/test/image/upload/v1/testFolder/1024x1024.jpg'/>
I want to get the url which is between '
and '
. This is what I tried and it gives String index out of range : -1 error.
String html = "<img src='http://res.cloudinary.com/test/image/upload/v1/testFolder/1024x1024.jpg'/>";
html.substring((html.indexOf("'")), html.indexOf("'"));
and also I tried html.substring((html.indexOf("'")) +1 , html.indexOf("'"));
How can I get the url between '
and '
?