<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp%2FDevelopment_Class%2FMatcher</id>
		<title>Csharp/C Sharp/Development Class/Matcher - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp%2FDevelopment_Class%2FMatcher"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/Development_Class/Matcher&amp;action=history"/>
		<updated>2026-04-30T02:21:13Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp/Development_Class/Matcher&amp;diff=1181&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/Development_Class/Matcher&amp;diff=1181&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:19Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 15:31, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp/Development_Class/Matcher&amp;diff=1182&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/Development_Class/Matcher&amp;diff=1182&amp;oldid=prev"/>
				<updated>2010-05-26T11:43:22Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Define multiline patterns==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
using System;&lt;br /&gt;
using System.Text.RegularExpressions;&lt;br /&gt;
public class EntryPoint&lt;br /&gt;
{&lt;br /&gt;
    static void Main( string[] args ) {&lt;br /&gt;
        // Create regex to search for IP address pattern.&lt;br /&gt;
        string pattern = @&amp;quot;&lt;br /&gt;
# First part match&lt;br /&gt;
([01]?\d\d?         &lt;br /&gt;
# OR&lt;br /&gt;
 |2[0-4]\d          &lt;br /&gt;
# OR&lt;br /&gt;
 |25[0-5])          &lt;br /&gt;
\.                  &lt;br /&gt;
# REPEAT&lt;br /&gt;
([01]?\d\d?|2[0-4]\d|25[0-5])\.&lt;br /&gt;
# REPEAT&lt;br /&gt;
([01]?\d\d?|2[0-4]\d|25[0-5])\.&lt;br /&gt;
# REPEAT&lt;br /&gt;
([01]?\d\d?|2[0-4]\d|25[0-5])&lt;br /&gt;
&amp;quot;;&lt;br /&gt;
        Regex regex = new Regex( pattern,&lt;br /&gt;
                       RegexOptions.IgnorePatternWhitespace );&lt;br /&gt;
        Match match = regex.Match( &amp;quot;192.168.169.1&amp;quot; );&lt;br /&gt;
        while( match.Success ) {&lt;br /&gt;
            Console.WriteLine( &amp;quot;IP Address found at {0} with &amp;quot; +&lt;br /&gt;
                               &amp;quot;value of {1}&amp;quot;,&lt;br /&gt;
                               match.Index,&lt;br /&gt;
                               match.Value );&lt;br /&gt;
            match = match.NextMatch();&lt;br /&gt;
        }&lt;br /&gt;
        &lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is Match successful==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
using System;&lt;br /&gt;
using System.Text.RegularExpressions;&lt;br /&gt;
public class EntryPoint&lt;br /&gt;
{&lt;br /&gt;
    static void Main( string[] args ) {&lt;br /&gt;
        // Create regex to search for IP address pattern.&lt;br /&gt;
        string pattern = @&amp;quot;([01]?\d\d?|2[0-4]\d|25[0-5])\.&amp;quot; +&lt;br /&gt;
                         @&amp;quot;([01]?\d\d?|2[0-4]\d|25[0-5])\.&amp;quot; +&lt;br /&gt;
                         @&amp;quot;([01]?\d\d?|2[0-4]\d|25[0-5])\.&amp;quot; +&lt;br /&gt;
                         @&amp;quot;([01]?\d\d?|2[0-4]\d|25[0-5])&amp;quot;;&lt;br /&gt;
        Regex regex = new Regex( pattern );&lt;br /&gt;
        Match match = regex.Match( &amp;quot;192.168.169.1&amp;quot; );&lt;br /&gt;
        while( match.Success ) {&lt;br /&gt;
            Console.WriteLine( &amp;quot;IP Address found at {0} with &amp;quot; +&lt;br /&gt;
                               &amp;quot;value of {1}&amp;quot;,&lt;br /&gt;
                               match.Index,&lt;br /&gt;
                               match.Value );&lt;br /&gt;
            Console.WriteLine( &amp;quot;Groups are:&amp;quot; );&lt;br /&gt;
            foreach( Group g in match.Groups ) {&lt;br /&gt;
                Console.WriteLine( &amp;quot;\t{0} at {1}&amp;quot;,&lt;br /&gt;
                                   g.Value,&lt;br /&gt;
                                   g.Index );&lt;br /&gt;
            }&lt;br /&gt;
            match = match.NextMatch();            &lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==MatchEvaluator: Entry Point IP Reverse==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
using System;&lt;br /&gt;
using System.Text;&lt;br /&gt;
using System.Text.RegularExpressions;&lt;br /&gt;
public class EntryPoint&lt;br /&gt;
{&lt;br /&gt;
    static void Main( string[] args ) {&lt;br /&gt;
        // Create regex to search for IP address pattern.&lt;br /&gt;
        string pattern = @&amp;quot;(?&amp;lt;part1&amp;gt;[01]?\d\d?|2[0-4]\d|25[0-5])\.&amp;quot; +&lt;br /&gt;
                         @&amp;quot;(?&amp;lt;part2&amp;gt;[01]?\d\d?|2[0-4]\d|25[0-5])\.&amp;quot; +&lt;br /&gt;
                         @&amp;quot;(?&amp;lt;part3&amp;gt;[01]?\d\d?|2[0-4]\d|25[0-5])\.&amp;quot; +&lt;br /&gt;
                         @&amp;quot;(?&amp;lt;part4&amp;gt;[01]?\d\d?|2[0-4]\d|25[0-5])&amp;quot;;&lt;br /&gt;
        Regex regex = new Regex( pattern );&lt;br /&gt;
        Match match = regex.Match( &amp;quot;192.168.169.1&amp;quot; );&lt;br /&gt;
        MatchEvaluator eval = new MatchEvaluator(EntryPoint.IPReverse );&lt;br /&gt;
        Console.WriteLine( regex.Replace(&amp;quot;192.168.169.1&amp;quot;, eval) );&lt;br /&gt;
    }&lt;br /&gt;
    static string IPReverse( Match match ) {&lt;br /&gt;
        Console.WriteLine( match.Groups[&amp;quot;part4&amp;quot;] + &amp;quot;.&amp;quot; );&lt;br /&gt;
        Console.WriteLine( match.Groups[&amp;quot;part3&amp;quot;] + &amp;quot;.&amp;quot; );&lt;br /&gt;
        Console.WriteLine( match.Groups[&amp;quot;part2&amp;quot;] + &amp;quot;.&amp;quot; );&lt;br /&gt;
        Console.WriteLine( match.Groups[&amp;quot;part1&amp;quot;] );&lt;br /&gt;
        return &amp;quot;&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Match Groups==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
using System;&lt;br /&gt;
using System.Text.RegularExpressions;&lt;br /&gt;
public class EntryPoint&lt;br /&gt;
{&lt;br /&gt;
    static void Main( string[] args ) {&lt;br /&gt;
        // Create regex to search for IP address pattern.&lt;br /&gt;
        string pattern = @&amp;quot;(?&amp;lt;part1&amp;gt;[01]?\d\d?|2[0-4]\d|25[0-5])\.&amp;quot; +&lt;br /&gt;
                         @&amp;quot;(?&amp;lt;part2&amp;gt;[01]?\d\d?|2[0-4]\d|25[0-5])\.&amp;quot; +&lt;br /&gt;
                         @&amp;quot;(?&amp;lt;part3&amp;gt;[01]?\d\d?|2[0-4]\d|25[0-5])\.&amp;quot; +&lt;br /&gt;
                         @&amp;quot;(?&amp;lt;part4&amp;gt;[01]?\d\d?|2[0-4]\d|25[0-5])&amp;quot;;&lt;br /&gt;
        Regex regex = new Regex( pattern );&lt;br /&gt;
        Match match = regex.Match( &amp;quot;192.168.169.1&amp;quot; );&lt;br /&gt;
        while( match.Success ) {&lt;br /&gt;
            Console.WriteLine( &amp;quot;IP Address found at {0} with &amp;quot; +&lt;br /&gt;
                               &amp;quot;value of {1}&amp;quot;,&lt;br /&gt;
                               match.Index,&lt;br /&gt;
                               match.Value );&lt;br /&gt;
            Console.WriteLine( &amp;quot;Groups are:&amp;quot; );&lt;br /&gt;
            Console.WriteLine( &amp;quot;\tPart 1: {0}&amp;quot;,&lt;br /&gt;
                               match.Groups[&amp;quot;part1&amp;quot;] );&lt;br /&gt;
            Console.WriteLine( &amp;quot;\tPart 2: {0}&amp;quot;,&lt;br /&gt;
                               match.Groups[&amp;quot;part2&amp;quot;] );&lt;br /&gt;
            Console.WriteLine( &amp;quot;\tPart 3: {0}&amp;quot;,&lt;br /&gt;
                               match.Groups[&amp;quot;part3&amp;quot;] );&lt;br /&gt;
            Console.WriteLine( &amp;quot;\tPart 4: {0}&amp;quot;,&lt;br /&gt;
                               match.Groups[&amp;quot;part4&amp;quot;] );&lt;br /&gt;
            match = match.NextMatch();&lt;br /&gt;
        }&lt;br /&gt;
        &lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Match IP address pattern and print out the index==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
using System;&lt;br /&gt;
using System.Text.RegularExpressions;&lt;br /&gt;
public class EntryPoint&lt;br /&gt;
{&lt;br /&gt;
    static void Main( string[] args ) {&lt;br /&gt;
        // Create regex to search for IP address pattern.&lt;br /&gt;
        string pattern = @&amp;quot;([01]?\d\d?|2[0-4]\d|25[0-5])\.&amp;quot; +&lt;br /&gt;
                         @&amp;quot;([01]?\d\d?|2[0-4]\d|25[0-5])\.&amp;quot; +&lt;br /&gt;
                         @&amp;quot;([01]?\d\d?|2[0-4]\d|25[0-5])\.&amp;quot; +&lt;br /&gt;
                         @&amp;quot;([01]?\d\d?|2[0-4]\d|25[0-5])&amp;quot;;&lt;br /&gt;
        Regex regex = new Regex( pattern );&lt;br /&gt;
        Match match = regex.Match( &amp;quot;192.169.168.1&amp;quot; );&lt;br /&gt;
        while( match.Success ) {&lt;br /&gt;
            Console.WriteLine( &amp;quot;IP Address found at {0} with &amp;quot; +&lt;br /&gt;
                               &amp;quot;value of {1}&amp;quot;,&lt;br /&gt;
                               match.Index,&lt;br /&gt;
                               match.Value );&lt;br /&gt;
            match = match.NextMatch();&lt;br /&gt;
        }&lt;br /&gt;
        &lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Use regular to search an IP address==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
using System;&lt;br /&gt;
using System.Text.RegularExpressions;&lt;br /&gt;
public class EntryPoint&lt;br /&gt;
{&lt;br /&gt;
    static void Main( string[] args ) {&lt;br /&gt;
        // Create regex to search for IP address pattern.&lt;br /&gt;
        string pattern = @&amp;quot;\d\d?\d?\.\d\d?\d?\.\d\d?\d?\.\d\d?\d?&amp;quot;;&lt;br /&gt;
        Regex regex = new Regex( pattern );&lt;br /&gt;
        Match match = regex.Match( &amp;quot;192.168.169.1&amp;quot; );&lt;br /&gt;
        while( match.Success ) {&lt;br /&gt;
            Console.WriteLine( &amp;quot;IP Address found at {0} with &amp;quot; +&lt;br /&gt;
                               &amp;quot;value of {1}&amp;quot;,&lt;br /&gt;
                               match.Index,&lt;br /&gt;
                               match.Value );&lt;br /&gt;
            match = match.NextMatch();&lt;br /&gt;
        }&lt;br /&gt;
        &lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>