forum

home / developersection / forums / skip image from content using regex

Skip Image from Content using Regex

Anonymous User 1115 12-Mar-2018

I want to skip image from content ..this is my sample code please help

@{

    string regexImgSrc = @"<img[^>]*?src\s*=\s*[""']?([^'"" >]+?)[ '""][^>]*?>";
}
 @if (post.Content.Length > 70)
       {
              var str = post.Content.Substring(0, 70);

           }

c# c#  mvc 
Updated on 12-Mar-2018

I am a content writter !


Message
Can you answer this question?

Answer

1 Answers

Liked By