Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string line = @"xxxxxxxxxxxx A(a,b) and A(a,b) > 0 xxxxxxxxx n xxxxxxxxx A(a,b) and A(a,b) > 0 xxxxxxxxxxxxxxxxxx";
- string Pattern = "A.+?>";
- MatchCollection M1 = Regex.Matches(line, Pattern);
- Console.WriteLine(M1[0].ToString()); //I want 【A(a,b) >】 but it shows 【A(a,b) and A(a,b) >】
- Console.WriteLine(M1[1].ToString()); //I want 【A(a,b) >】 but it shows 【A(a,b) and A(a,b) >】
- Console.Read();
Add Comment
Please, Sign In to add comment