如何提取字符串? [英] How to extract the strings?

查看:68
本文介绍了如何提取字符串?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要提取两个字符串"string1",和字符串"从下面的HTML格式,该怎么办?谢谢.

I want to extract the two strings "string1" and "strings" from the HTML format below, how to do? thank you.

< b> String1</b> br< font size =-3">< font color ="#A0A0A0"> String2</font></font> </br>

<b>String1</b><br><font size="-3"><font color="#A0A0A0">String2</font></font></br>

推荐答案

嗨gaxjyxq,

Hi gaxjyxq,

您可以使用string.format方法.以下代码供您参考.

You could use string.format method. Code below is for your reference.

Dim html As String = String.Format("<b>{0}</b><br><font size=""-3""><font color=""#A0A0A0"">{1}</font></font></br>", String1, String2)

最好的问候,
王丽

Best Regards,
Li Wang


这篇关于如何提取字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆