0

your boss name after finish b tag Want received random generated name so we need this name in our textbox or list box area.

Actually every loading time we see your boss name after coming new name so we just received name in our textbox area or list box are.

Please help me how I am received name data in my list box or textbox Please.

 
       
         Your boss name  adriana
         your id: 2241
         Email: yourbossemail@gmail.com
         File Format: officeial
       
       

 
       
         Your boss name  jennefer
         your id: 2241
         Email: yourbossemail@gmail.com
         File Format: officeial
       
       

my code 

HtmlElementCollection bColl = webBrowser1.Document.GetElementsByTagName("td");
        foreach (HtmlElement bEl in bColl)
        {
            if (bEl.GetAttribute("b").Contains("your"))
            txtLinkDetails.Text = bEl.OuterHtml.Split('"')[3].Replace("&amp", "&");
        }
4

1 回答 1

2

试试这个: 首先你找到 table 的 innerhtml 然后通过<b>([^<]+)<\/b>([^<]+)正则表达式过滤

演示

您将获得数组组的以下输出:

//example
//group 1 =Your boss name
// group 2= jennefer

在此处输入图像描述

于 2015-08-31T08:46:42.263 回答