I am unable to get matched content inside a file with regex. My requirement is user provide some text in textbox 1 and some text in textbox 2. The regex method should search the file by combination of both texts from textbox. As of now I am able to find match with single search provided by user.
Here is the code:
private Regex R = null;
public void GetFileInfo(string textbox1val)
{
   if (this.R.IsMatch(text))
   {
      // my other code goes here....
   }
}
//on button click I am passing textbox text to regex and  to GetFileInfomethod
private void button1_Click(object sender, EventArgs e)
{        
   this.R = new Regex(textbox1.Text);
   GetFileInfo(textbox1.Text);
}
Please help me on this question, thanks in advance for your help.
Regards, Aditya.J
 
     
     
    