क्यों निम्नलिखित कोड परिणाम में:रेगेक्स समूहों के साथ कई घटनाओं को कैसे ढूंढें?
के लिए 3 मैचों था:वहाँ ''
वहाँ ''
और नहीं के लिए 1 मैचों था
using System;
using System.Text.RegularExpressions;
namespace TestRegex82723223
{
class Program
{
static void Main(string[] args)
{
string text = "C# is the best language there is in the world.";
string search = "the";
Match match = Regex.Match(text, search);
Console.WriteLine("there was {0} matches for '{1}'", match.Groups.Count, match.Value);
Console.ReadLine();
}
}
}