Skip to content Skip to sidebar Skip to footer

How Received Number In My Textbox1 Using Windows Form?

please see below html code in there I am want number in my textbox area. I am trying many process but still not getting any solution so please check html code with give me right s

Solution 1:

You may use the following RegEx based solution. I'm assuming that the format of your html page doesn't change.

Regex re = new Regex(@"(?<=<tr><td><b>Phone\sNumber:</b>\s?)206-[-\d]+?(?=</td></tr>)", RegexOptions.Singleline);
foreach (Match match in re.Matches(webBrowser1.DocumentText))
{
    listBox1.Items.Add(match.Value);
}

Post a Comment for "How Received Number In My Textbox1 Using Windows Form?"