forum

Home / DeveloperSection / Forums / Skip Image from Content using Regex

Skip Image from Content using Regex

Anonymous User 887 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 !

Can you answer this question?


Answer

1 Answers

Liked By