First of all, I did a search on this issue and was able to find how to use something like String.Split () to retrieve a string based on a condition. However, I could not find how to extract it based on the final condition. For example, I have a file with links to images: http://i594.photobucket.com/albums/tt27/34/444.jpghttp://i594.photobucket.com/albums/as/asfd/ghjk6.jpg
You will notice that all images start with http://and end with .jpg. However, .jpg is replaced by http: // without a space, which makes this a bit more complicated.
So basically I'm trying to find a way (Regex?) To extract a line from a line that starts with http: // and ends with .jpg
source
share