Regex and letter case : Regular Expression : Development Class C# Source Code


Custom Search

C# Source Code » Development Class » Regular Expression »

 

Regex and letter case








    
 
using System;
using System.Text.RegularExpressions;


public class MainClass {
    public static void Main() {

        Regex q = new Regex(" in ");
        MatchCollection mm = q.Matches("IN at in or");
        for (int i = 0; i < mm.Count; i++) {
            Console.WriteLine("Found '{0}' at position {1}",mm[i].Value, mm[i].Index);
        }
    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Development Class
» Regular Expression