-1
This tag repeats by changing the content and I would like to know if there is a way to get each content separately
TextBox TXTTESTE = new TextBox();
TextBox TXTTESTEDOIS = new TextBox();
TextBox TXTTESTETRES = new TextBox();
ListBox LBTESTE = new ListBox();
MatchCollection TESTE = Regex.Matches(html, @"(<[^>]+>Alíquota<[^>]+><[^>]+>\d+\,\d+<[^>]+>)", RegexOptions.Multiline);
foreach (Match grupo in TESTE)
{
string strteste = grupo.Groups[0].Value;
string strdoisteste = grupo.Groups[1].Value;
string strtresteste = grupo.Groups[2].Value;
LBTESTE.Items.Add(strteste);
LBTESTE.Items.Add(strdoisteste);
LBTESTE.Items.Add(strtresteste);
}
Edit and put the example tag.
– user6026
it returns "10.00", "20.00", "30.00" "10.00" , "20.00" , "30.00"
– user3062801
There is a software to run regex . Net that I use a lot to test regexes quickly when needed: Rad Software Regular Expression Designer
– Miguel Angelo
I’ll improve the question, what’s inside html ?
– user6026
You have this in HTML: <td><label>Aliquot</label><span class="line">18,00</span></td></tr><td><label>Aliquot</label><span class="line">50,00</span></td></tr>
– user3062801