I want to retrieve a text starting with "http" and finishing with ".jpg" in a content i have .
What i did for now is :

```
public void captureURL(String content){
    for(int i = 0; i < content.length() ; i++){
        String test = content.substring(i);
        if(test.startsWith("http://") && test.endsWith(".jpg")){

        }
    }
}

```

The big picture is : i take the content of a page with Asynctask, and search for the image URL . And save it in some variables.