I am getting the html string in below format and I want to get only the attribute value of style="width: 880px" , which is always changing.[This is only work if the width is mention in style tag. And that is the my case.]
ImgPath ==>
<table border="0" cellpadding="10" cellspacing="1" style="width: 880px">
// some other code goes here
</html>
Answer ==> I used regular expression in my class, [want to make DLL file from that class]
string StrStyTag = string.Empty;
StrStyTag = System.Text.RegularExpressions.Regex.Match(ImgPath, "<table.+?style=(.+?)>", System.Text.RegularExpressions.RegexOptions.IgnoreCase).Groups[1].Value;
I am getting the value as ==> "width: 880px", So after doing some string manipulations I make the 880px to fix 550px.
Thanks for all those who help me to resolved it.