Regex rgxFiles = new Regex(@"[\w/:.]+\.(?:jpg|bmp|gif|png)");
MatchCollection mtcFiles = Regex.Matches(strSourceString,@"[\w/:.]+\.(?:jpg|bmp|gif|png)",RegexOptions.IgnoreCase);
foreach (Match mFile in mtcFiles)
{
//mFile.Value will contain the image address that we can work with
}
No comments:
Post a Comment