J
Julia
assuming I have template HTML file which contains property names to evaluate
at run time
<HTML>
<BODY><%PropertyName1%>
<DIV ID="<%PropertyName2%>">
</HTML>
How do I find all matches for <%...%> ,i dont know which pattern to use.
string pattern="";
string input=".....";
Regex rex = new Regex(pattern, RegexOptions.IgnoreCase);
for (Match match = rex.Match(input);match.Success;match = match.NextMatch())
{
Console.WriteLine("Found '{0}' at position {1}",match.Value, match.Index);
}
Thanks in advance
at run time
<HTML>
<BODY><%PropertyName1%>
<DIV ID="<%PropertyName2%>">
</HTML>
How do I find all matches for <%...%> ,i dont know which pattern to use.
string pattern="";
string input=".....";
Regex rex = new Regex(pattern, RegexOptions.IgnoreCase);
for (Match match = rex.Match(input);match.Success;match = match.NextMatch())
{
Console.WriteLine("Found '{0}' at position {1}",match.Value, match.Index);
}
Thanks in advance