Check out example codes for "regex in c#". It will help you in understanding the concepts better.

Code Example 1

string regex = @"\me\";
steing testRegex = "Hit me with that titan Boa baby.";

Regex re = new Regex(regex);


if (re.IsMatch(testRegex)){
 // WIll return true if it matches. # It does
  return true;
} else {
 // Will return false if it does not macth 
  return false;
  
}

Code Example 2

using System;
using System.Text.RegularExpressions;

Learn ReactJs, React Native from akashmittal.com