<?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%2FCSharp_Tutorial%2FRegular_Expression%2FRegex_Area_code</id>
		<title>Csharp/CSharp Tutorial/Regular Expression/Regex Area code - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FCSharp_Tutorial%2FRegular_Expression%2FRegex_Area_code"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/Regular_Expression/Regex_Area_code&amp;action=history"/>
		<updated>2026-04-29T14:44:08Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/Regular_Expression/Regex_Area_code&amp;diff=5920&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/Regular_Expression/Regex_Area_code&amp;diff=5920&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:53Z</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/CSharp_Tutorial/Regular_Expression/Regex_Area_code&amp;diff=5921&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/Regular_Expression/Regex_Area_code&amp;diff=5921&amp;oldid=prev"/>
				<updated>2010-05-26T12:17:44Z</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;==Regular Expression: area code==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
using System.Text.RegularExpressions;&lt;br /&gt;
class MainClass&lt;br /&gt;
{&lt;br /&gt;
  public static void Main()&lt;br /&gt;
  {&lt;br /&gt;
    string text = &amp;quot;(800) 888-1211\n&amp;quot; +&lt;br /&gt;
      &amp;quot;(212) 555-1212\n&amp;quot; +&lt;br /&gt;
      &amp;quot;(506) 777-1213\n&amp;quot; +&lt;br /&gt;
      &amp;quot;(650) 222-1214\n&amp;quot; +&lt;br /&gt;
      &amp;quot;(888) 111-1215\n&amp;quot;;&lt;br /&gt;
    string areaCodeRegExp = @&amp;quot;(?&amp;lt;areaCodeGroup&amp;gt;\(\d\d\d\))&amp;quot;;&lt;br /&gt;
    string phoneRegExp = @&amp;quot;(?&amp;lt;phoneGroup&amp;gt;\d\d\d\-\d\d\d\d)&amp;quot;;&lt;br /&gt;
    MatchCollection myMatchCollection = Regex.Matches(text, areaCodeRegExp + &amp;quot; &amp;quot; + phoneRegExp);&lt;br /&gt;
    foreach (Match myMatch in myMatchCollection)&lt;br /&gt;
    {&lt;br /&gt;
      Console.WriteLine(&amp;quot;Area code = &amp;quot; + myMatch.Groups[&amp;quot;areaCodeGroup&amp;quot;]);&lt;br /&gt;
      Console.WriteLine(&amp;quot;Phone = &amp;quot; + myMatch.Groups[&amp;quot;phoneGroup&amp;quot;]);&lt;br /&gt;
      foreach (Group myGroup in myMatch.Groups)&lt;br /&gt;
        foreach (Capture myCapture in myGroup.Captures)&lt;br /&gt;
          Console.WriteLine(&amp;quot;myCapture.Value = &amp;quot; + myCapture.Value);&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;Area code = (800)&lt;br /&gt;
Phone = 888-1211&lt;br /&gt;
myCapture.Value = (800) 888-1211&lt;br /&gt;
myCapture.Value = (800)&lt;br /&gt;
myCapture.Value = 888-1211&lt;br /&gt;
Area code = (212)&lt;br /&gt;
Phone = 555-1212&lt;br /&gt;
myCapture.Value = (212) 555-1212&lt;br /&gt;
myCapture.Value = (212)&lt;br /&gt;
myCapture.Value = 555-1212&lt;br /&gt;
Area code = (506)&lt;br /&gt;
Phone = 777-1213&lt;br /&gt;
myCapture.Value = (506) 777-1213&lt;br /&gt;
myCapture.Value = (506)&lt;br /&gt;
myCapture.Value = 777-1213&lt;br /&gt;
Area code = (650)&lt;br /&gt;
Phone = 222-1214&lt;br /&gt;
myCapture.Value = (650) 222-1214&lt;br /&gt;
myCapture.Value = (650)&lt;br /&gt;
myCapture.Value = 222-1214&lt;br /&gt;
Area code = (888)&lt;br /&gt;
Phone = 111-1215&lt;br /&gt;
myCapture.Value = (888) 111-1215&lt;br /&gt;
myCapture.Value = (888)&lt;br /&gt;
myCapture.Value = 111-1215&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>