Position and index : Regular Expression : Development Class C# Source Code


Custom Search

C# Source Code » Development Class » Regular Expression »

 

Position and index








    
 
using System;
using System.Text.RegularExpressions;


class MatchingApp {
    static void Main(string[] args) {
        Regex r = new Regex("in");
        Match m = r.Match("Matching");
        if (m.Success) {
            Console.WriteLine("Found '{0}' at position {1}",m.Value, m.Index);
        }
    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Development Class
» Regular Expression