I am developing a GOOGLE TRANSLATE software for Windows Phonw 8. I want to get the "value of ALL SPAN TAGS" inside a span tag of specific class="result_box" in C#.
<html>
.
.
<span id="result_box" class="short_text" lang="pt">
<span class="hps">
Olá
</span>
<span class="">
.
</span>
<span class="hps">
oi
</span>
</span>
.
.
</html>
I tried this but it is not working
html = e.Result;
var r = new Regex(@"(?i)<span[^>]*?>\s*", RegexOptions.IgnoreCase);
string capture = r.Match(html).Groups[1].Value;
MessageBox.Show(capture);
Suggest me REGEX. If possible please give me full function that returns me the text.