N
natebruneau
I want the output to look like this
Output(good):
findme
Output(bad)
(findme)
I am having trouble getting rid of ( and ). I tried adding \x28 and
\u0028 after test but same problem. Any ideas?
Thanks
-Nate
Label1.Text = "";
MatchCollection mc1 = Regex.Matches("test(findme)test", "test(?
<Content>.*?)test");
//Output match information if a match was found
if (mc1.Count > 0)
{
foreach (Match m1 in mc1)
{
Label2.Text += m1.Groups["Content"].Value;
}
Output(good):
findme
Output(bad)
(findme)
I am having trouble getting rid of ( and ). I tried adding \x28 and
\u0028 after test but same problem. Any ideas?
Thanks
-Nate
Label1.Text = "";
MatchCollection mc1 = Regex.Matches("test(findme)test", "test(?
<Content>.*?)test");
//Output match information if a match was found
if (mc1.Count > 0)
{
foreach (Match m1 in mc1)
{
Label2.Text += m1.Groups["Content"].Value;
}