Have a look at below example:
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string sPattern = "(?:[0-9]{1,2}\\.)(?<Name>[A-Za-z]{1,}/[A-Za-z]{1,})";
Regex r = new Regex(sPattern , RegexOptions.ExplicitCapture | RegexOptions.Singleline | RegexOptions.Compiled );
string sPath = "E:\\data.txt";
string line = String.Empty;
System.IO.StreamReader file = new System.IO.StreamReader(sPath);
while ((line = file.ReadLine()) != null)
{
foreach (Match m in r.Matches(line))
{
Console.WriteLine ("Match: {0}" ,m.ToString());
}
}
file.Close();
Console.ReadLine();
}
}
}
Result:
Match: 1.KHOON/FRANCIS
Match: 2.MEH/SAY
Match: 3.MEH/PRAY
Match: 4.MEH/MAW
Match: 5.REH/LAW
Match: 6.REH/PAE
Match: 7.REH/DO
Match: 8.REH/LEE
Match: 9.REH/HEH
Match: 10.AMitesh/verma
As you can see, i have saved your input string into text file, then i read it line by line. ;)