new Regex((abc)*)x(\1) : Regular Expression : Regular Expression C# Examples


C# Examples » Regular Expression » Regular Expression »

 

new Regex((abc)*)x(\1)









    
using  System;
using  System.Collections.Generic;
using  System.Globalization;
using  System.Text;
using  System.Text.RegularExpressions;
using  System.Reflection;

public  class  MainClass{

      public  static  void  Main(){
                Regex  r1  =  new  Regex(@"((abc)*)x(\1)");
                string  s1  =  "abcabcabcxabc";
                Console.WriteLine(r1.IsMatch(s1)  +  "..."  +  r1.Match(s1).Value);
      }
}
    
   
  
   



Output

True...abcxabc


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Regular Expression
» Regular Expression