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

これを試してください: 最初にテーブルのinnerhtmlを見つけてから、<b>([^<]+)<\/b>([^<]+)正規表現でフィルタリングします

デモ

配列グループを使用すると、次の出力が得られます。

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

ここに画像の説明を入力

于 2015-08-31T08:46:42.263 に答える