new Regex(]+>[^]+>) : Regular Expression : Regular Expression C# Examples


C# Examples » Regular Expression » Regular Expression »

 

new Regex(]+>[^]+>)









    
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  r0  =  new  Regex(@"<[^>]+>[^<]*</[^>]+>");
                
                string  s0  =  "<M>S</M>";
                string  s1  =  "<M>S</I>";
                Console.WriteLine(r0.IsMatch(s0));
                Console.WriteLine(r0.IsMatch(s1));
      }
}
    
   
  
   



Output

True
True


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Regular Expression
» Regular Expression