Biz.Helper.ContentHelper.GetMediaResources C# (CSharp) Method

GetMediaResources() public static method

public static GetMediaResources ( string &activityContent ) : IList
activityContent string
return IList
        public static IList<string> GetMediaResources(ref string activityContent)
        {
            //Replace flv to mp4
            ReplaceUrlFileFormat(ref activityContent);

            IList<string> list = new List<string>();

            Regex r = new Regex(@"(?<=http://\w+.englishtown.com)/Juno/[\s\S]*?(\.mp3|\.jpg|\.png|\.gif|\.bmp|\.mp4|\.f4v|\.m3u8|\.swf)", RegexOptions.IgnoreCase);
            MatchCollection m = r.Matches(activityContent);

            for (int j = 0; j < m.Count; j++)
            {
                var a = m[j].Value;
                list.Add(a);
            }

            return list;
        }