S
shuiqing.li
Hi,
I met a question when I would match some lines using the pattern
"<td>(.*?)</td>" in flows :
===============
<td>Hi
hello world!
....
</td>
===============
The question is I'll match these lines between "<td>" and "</td>", but
can't math anything using this pattern.
Here is my code:
===============
using System.Text.RegularExpressions;
Regex r;
Match m;
r = new Regex("<td>(.*?)</td>",
RegexOptions.IgnoreCase|RegexOptions.Compiled|RegexOptions.Multiline);
for (m = r.Match(pageContent); m.Success; m = m.NextMatch()) {
if(m.Groups[1].ToString()!="")
System.Console.Out.WriteLine(m.Groups[1].ToString());
}
===============
Who can help me?
Thanks in advance,
Jason.Lee
I met a question when I would match some lines using the pattern
"<td>(.*?)</td>" in flows :
===============
<td>Hi
hello world!
....
</td>
===============
The question is I'll match these lines between "<td>" and "</td>", but
can't math anything using this pattern.
Here is my code:
===============
using System.Text.RegularExpressions;
Regex r;
Match m;
r = new Regex("<td>(.*?)</td>",
RegexOptions.IgnoreCase|RegexOptions.Compiled|RegexOptions.Multiline);
for (m = r.Match(pageContent); m.Success; m = m.NextMatch()) {
if(m.Groups[1].ToString()!="")
System.Console.Out.WriteLine(m.Groups[1].ToString());
}
===============
Who can help me?
Thanks in advance,
Jason.Lee