<![if !vml]> <span style='mso-ignore:vglayout;position: absolute;z-index:7;left:117px;top:103px;width:28px;height:12px'> <img width=28 height=12 src="民生银行电子商户(B2C___)证书下载步骤2.files/image002.gif" v:shapes="_x0000_s1032"> </span> <![endif]> <![if !vml]> <img width=28 height=12 src="民生银行电子商户(B2C___)证书下载步骤2.files/image002.gif" v:shapes="_x0000_s1032"> <![endif]> <!--变化成--> <![if !vml]> <span style='mso-ignore:vglayout;position: absolute;z-index:7;left:117px;top:103px;width:28px;height:12px'> [img width=28 height=12 src="民生银行电子商户(B2C___)证书下载步骤2.files/image002.gif"/] </span> <![endif]> <![if !vml]> [img width=28 height=12 src="民生银行电子商户(B2C___)证书下载步骤2.files/image002.gif"/] <![endif]>
string message = "<img width=28 height=12 src=\"民生银行电子商户(B2C___)证书下载步骤2.files/image002.gif\" v:shapes=\"_x0000_s1032\">"; Regex reg = new Regex("<img width=(\"?[0-9]*\"?) height=(\"?[0-9]*\"?) src=\"(.*?)\".*/?>"); message = reg.Replace(message, "[img width=$1 height=$2 src=\"$3\" /]"); Console.WriteLine(message);
string message = "<![if !vml]><span style='mso-ignore:vglayout;position:absolute;z-index:7;left:117px;top:103px;width:28px;height:12px'><img width=28 height=12 src=\"民生银行电子商户(B2C___)证书下载步骤2.files/image002.gif\" v:shapes=\"_x0000_s1032\"></span><![endif]>"; Regex reg = new Regex("<img width=(\"?[0-9]*\"?) height=(\"?[0-9]*\"?) src=\"(.*?)\".*/?>"); message = reg.Replace(message, "[img width=$1 height=$2 src=\"$3\" /]"); Console.WriteLine(message);
<![if !vml]> <span style='mso-ignore:vglayout;position: absolute;z-index:7;left:117px;top:103px;width:28px;height:12px'> <img width=28 height=12 src="民生银行电子商户(B2C___)证书下载步骤2.files/image002.gif" v:shapes="_x0000_s1032"> </span> <![endif]> <![if !vml]> <img width=28 height=12 src="民生银行电子商户(B2C___)证书下载步骤2.files/image002.gif" v:shapes="_x0000_s1032"> <![endif]> <!--变化成--> [img width=28 height=12 src="民生银行电子商户(B2C___)证书下载步骤2.files/image002.gif"/] [img width=28 height=12 src="民生银行电子商户(B2C___)证书下载步骤2.files/image002.gif"/]
<p class="MsoNormal" style="mso-outline-level:1"> <span style="font-size:14.0pt; mso-bidi-font-size:12.0pt;font-family:宋体;mso-ascii-font-family:"Times New Roman"; mso-hansi-font-family:"Times New Roman"">二、在首页左上角选择<b>“电子商户</b></span><b><span lang="EN-US" style="font-size:14.0pt;mso-bidi-font-size:12.0pt">-</span></b><b><span style="font-size:14.0pt;mso-bidi-font-size:12.0pt;font-family:宋体;mso-ascii-font-family: "Times New Roman";mso-hansi-font-family:"Times New Roman"">商户证书下载”</span></b><span style="font-size:14.0pt;mso-bidi-font-size:12.0pt;font-family:宋体;mso-ascii-font-family: "Times New Roman";mso-hansi-font-family:"Times New Roman"">;</span><span lang="EN-US" style="font-size:14.0pt;mso-bidi-font-size:12.0pt"><o:p></o:p></span></p> <p class="MsoNormal" align="center" style="text-align:center"> <span lang="EN-US"><![if !vml]> <img border="0" width="451" height="333" src="民生银行电子商户(B2C___)证书下载步骤10.files/image004.jpg" v:shapes="_x0000_s1036"><![endif]><!--[if gte mso 9]><xml> <o:OLEObject Type="Embed" ProgID="PBrush" ShapeID="_x0000_i1026" DrawAspect="Content" ObjectID="_1277012795"> </o:OLEObject> </xml><![endif]--></span><b><span lang="EN-US" style="font-size:14.0pt; mso-bidi-font-size:12.0pt"><o:p></o:p></span></b></p> <p class="MsoNormal" style="mso-outline-level:1"> <span style="font-size:14.0pt; mso-bidi-font-size:12.0pt;font-family:宋体;mso-ascii-font-family:"Times New Roman"; mso-hansi-font-family:"Times New Roman"">三、在打开的证书下载窗口输入<b>参考号、授权码</b>,下载商户证书;</span><span lang="EN-US" style="font-size:14.0pt;mso-bidi-font-size:12.0pt"><o:p></o:p></span></p> <p class="MsoNormal" align="center" style="text-align:center"> <span lang="EN-US" style="font-size:14.0pt;mso-bidi-font-size:12.0pt"><![if !vml]> <img border="0" width="432" height="320" src="民生银行电子商户(B2C___)证书下载步骤10.files/image006.jpg" v:shapes="_x0000_s1035"><![endif]><o:p></o:p></span></p> <p class="MsoNormal" style="mso-outline-level:1"> <span style="font-size:14.0pt; mso-bidi-font-size:12.0pt;font-family:宋体;mso-ascii-font-family:"Times New Roman"; mso-hansi-font-family:"Times New Roman"">四、证书下载成功后,输入<b>商户号</b>即可登录商户后台,查看网上支付订单信息;</span><span lang="EN-US" style="font-size:14.0pt;mso-bidi-font-size:12.0pt"><o:p></o:p></span></p> <p class="MsoNormal" align="center" style="text-align:center"> <span lang="EN-US" style="font-size:14.0pt;mso-bidi-font-size:12.0pt"><![if !vml]> <img border="0" width="432" height="314" src="民生银行电子商户(B2C___)证书下载步骤10.files/image008.jpg" v:shapes="_x0000_s1034"><![endif]><o:p></o:p></span></p> <p class="MsoNormal" style="mso-outline-level:1"> <span style="font-size:14.0pt; mso-bidi-font-size:12.0pt;font-family:宋体;mso-ascii-font-family:"Times New Roman"; mso-hansi-font-family:"Times New Roman"">五、该证书从浏览器导出后,可作为网上支付服务器加密私钥,具体导出证书操作如下图:</span><span lang="EN-US" style="font-size:14.0pt;mso-bidi-font-size:12.0pt"><o:p></o:p></span></p>
string message = "<![if !vml]><span style='mso-ignore:vglayout;position:absolute;z-index:7;left:117px;top:103px;width:28px;height:12px'><img width=28 height=12 src=\"民生银行电子商户(B2C___)证书下载步骤2.files/image002.gif\" v:shapes=\"_x0000_s1032\"></span><![endif]>"; Regex reg = new Regex("<img border=\"0\" width=(\"?[0-9]*\"?) height=(\"?[0-9]*\"?) src=\"(.*?)\".*/?>"); message = reg.Replace(message, "[img width=$1 height=$2 src=\"$3\" /]"); Console.WriteLine(message);
//string text = "<![if !vml]><img width=28 height=12 src=\"民生银行电子商户(B2C___)证书下载步骤2.files/image002.gif\" v:shapes=\"_x0000_s1032\"><![endif]>"; string text = "<![if !vml]><span style='mso-ignore:vglayout;position:absolute;z-index:7;left:117px;top:103px;width:28px;height:12px'><img width=28 height=12 src=\"民生银行电子商户(B2C___)证书下载步骤2.files/image002.gif\" v:shapes=\"_x0000_s1032\"></span><![endif]>"; string s=System.Text.RegularExpressions.Regex.Replace(text,@"(<!\[if !vml\]>(<[^>]*?>)?)(<)(img[^>].*?)(>)((<[^>]*?>)?<!\[endif\]>)","[$4]",System.Text.RegularExpressions.RegexOptions.IgnoreCase); s=s.Replace("v:shapes=\"_x0000_s1032\"",""); Response.Write(s);
//string text = "<![if !vml]><img width=28 height=12 src=\"民生银行电子商户(B2C___)证书下载步骤2.files/image002.gif\" v:shapes=\"_x0000_s1032\"><![endif]>"; string text = "<![if !vml]><span style='mso-ignore:vglayout;position:absolute;z-index:7;left:117px;top:103px;width:28px;height:12px'><img width=28 height=12 src=\"民生银行电子商户(B2C___)证书下载步骤2.files/image002.gif\" v:shapes=\"_x0000_s1032\"></span><![endif]>"; string s=System.Text.RegularExpressions.Regex.Replace(text,@"(<!\[if !vml\]>(<[^>]*?>)?)(<)(img[^>].*?)(v:shapes=""(.*)"">)((<[^>]*?>)?<!\[endif\]>)","[$4]",System.Text.RegularExpressions.RegexOptions.IgnoreCase); Response.Write(s);