سلام 😉 در این مطلب از وب سایت پروگرم 98 کد Regex:استفاده از MatchCollection در c#.net را آماده کردم. انشاالله که این آموزش برای شما مفید باشد.
کد Regex:استفاده از MatchCollection در c#.net :
using System;
using System.Text.RegularExpressions;
class Test
{
public static void Main()
{
string string1 = "This is a test string";
Regex theReg = new Regex(@"(\S+)\s");
MatchCollection theMatches = theReg.Matches(string1);
foreach (Match theMatch in theMatches)
using System.Text.RegularExpressions;
class Test
{
public static void Main()
{
string string1 = "This is a test string";
Regex theReg = new Regex(@"(\S+)\s");
MatchCollection theMatches = theReg.Matches(string1);
foreach (Match theMatch in theMatches)