注æ
ãã®ãã¼ã¸ã«ã¢ã¯ã»ã¹ããã«ã¯ãæ¿èªãå¿ è¦ã§ãã ãµã¤ã³ã¤ã³ã¾ãã¯ãã£ã¬ã¯ããªã®å¤æ´ã試ããã¨ãã§ãã¾ãã
ãã®ãã¼ã¸ã«ã¢ã¯ã»ã¹ããã«ã¯ãæ¿èªãå¿ è¦ã§ãã ãã£ã¬ã¯ããªã®å¤æ´ã試ããã¨ãã§ãã¾ãã
æ£è¦è¡¨ç¾ã使ç¨ããã¨ãå¼·åãæè»ãããã¦å¹ççãªæ¹æ³ã§ããã¹ããå¦çã§ãã¾ãã æ£è¦è¡¨ç¾ã«ãããã¿ã¼ã³ä¸è´ã®åºç¯ãªè¡¨è¨æ³ã使ç¨ããã¨ã大éã®ããã¹ãããã°ããè§£æããæ¬¡ã®ãã¨ãè¡ããã¨ãã§ãã¾ãã
- ç¹å®ã®æåãã¿ã¼ã³ãæ¤ç´¢ãã
- ããã¹ããæ¤è¨¼ãã¦ãå®ç¾©æ¸ã¿ã®ãã¿ã¼ã³ (é»åã¡ã¼ã« ã¢ãã¬ã¹ãªã©) ã¨ä¸è´ãããã¨ã確å®ã«ãã
- ããã¹ãé¨åæååã®æ½åºãç·¨éãç½®æãã¾ãã¯åé¤ãè¡ã
- æ½åºãããæååãã³ã¬ã¯ã·ã§ã³ã«è¿½å ãã¦ãã¬ãã¼ããçæãã
æååå¦çã大éã®ããã¹ããè§£æããå¤ãã®ã¢ããªã±ã¼ã·ã§ã³ã«ã¨ã£ã¦ãæ£è¦è¡¨ç¾ã¯æ¬ ããã¨ã®ã§ããªããã¼ã«ã§ãã
æ£è¦è¡¨ç¾ã®ããã¿
æ£è¦è¡¨ç¾ã使ã£ãããã¹ãå¦çã®æãéè¦ãªé¨åã¯ã.NET ã® System.Text.RegularExpressions.Regex ãªãã¸ã§ã¯ãã«ãã£ã¦è¡¨ãããæ£è¦è¡¨ç¾ã¨ã³ã¸ã³ã§ãã æ£è¦è¡¨ç¾ã使ã£ãããã¹ãå¦çã§ã¯ãæ£è¦è¡¨ç¾ã¨ã³ã¸ã³ã«å¯¾ããæä½ã§ã次㮠2 ã¤ã®æ å ±ãä¸ããå¿ è¦ãããã¾ãã
ããã¹ããèå¥ããæ£è¦è¡¨ç¾ãã¿ã¼ã³ã
.NET ã§ã¯ãæ£è¦è¡¨ç¾ã®ãã¿ã¼ã³ãç¹æ®ãªæ§æã¾ãã¯è¨èªã§å®ç¾©ããã¾ãããã®æ§æã¾ãã¯è¨èªã«ã¯ãPerl 5 ã®æ£è¦è¡¨ç¾ã¨äºææ§ãããã»ããå³ããå·¦ã¸ã®ä¸è´å¦çãªã©ãããã¤ãã®æ©è½ã追å ããã¦ãã¾ãã 詳細ã«ã¤ãã¦ã¯ããæ£è¦è¡¨ç¾è¨èª - ã¯ã¤ã㯠ãªãã¡ã¬ã³ã¹ããã覧ãã ããã
æ£è¦è¡¨ç¾ãã¿ã¼ã³ã®è§£æå¯¾è±¡ã¨ãªãããã¹ãã
Regex ã¯ã©ã¹ã®ã¡ã½ããã使ç¨ããã¨ã次ã®ãããªå¦çãå®è¡ã§ãã¾ãã
å ¥åãããããã¹ãã«ç¹å®ã®æ£è¦è¡¨ç¾ãã¿ã¼ã³ãåºç¾ãããã©ããã調ã¹ãã«ã¯ãRegex.IsMatch ã¡ã½ãããå¼ã³åºãã¾ãã IsMatch ã¡ã½ããã使ç¨ãã¦ããã¹ããæ¤è¨¼ããä¾ã«ã¤ãã¦ã¯ããæ¹æ³:æååãæå¹ãªé»åã¡ã¼ã«å½¢å¼ã§ãããã©ãããæ¤è¨¼ããããã覧ãã ããã
æ£è¦è¡¨ç¾ãã¿ã¼ã³ã¨ä¸è´ããããã¹ãã 1 ã¤ã¾ãã¯å ¨é¨åå¾ããã«ã¯ãRegex.Match ã¡ã½ããã¾ã㯠Regex.Matches ã¡ã½ãããå¼ã³åºãã¾ãã åè ã¯ãä¸è´ããããã¹ãã®æ å ±ãä¿æãã System.Text.RegularExpressions.Match ãªãã¸ã§ã¯ããè¿ãã¾ãã å¾è ã¯ãè§£æå¯¾è±¡ã®ããã¹ãã«è¦ã¤ãã£ãåä¸è´ã«ã¤ã 1 ã¤ã® MatchCollection ãªãã¸ã§ã¯ããå«ã System.Text.RegularExpressions.Match ãªãã¸ã§ã¯ããè¿ãã¾ãã
æ£è¦è¡¨ç¾ãã¿ã¼ã³ã¨ä¸è´ããããã¹ããç½®æããã«ã¯ãRegex.Replace ã¡ã½ãããå¼ã³åºãã¾ãã Replace ã¡ã½ããã使ç¨ãã¦æ¥ä»å½¢å¼ã夿´ãããæååããç¡å¹ãªæåãåé¤ãããããä¾ã«ã¤ãã¦ã¯ããæ¹æ³:æååããç¡å¹ãªæåãåãé¤ããã¨ãä¾:æ¥ä»å½¢å¼ã®å¤æ´ããåç §ãã¦ãã ããã
æ£è¦è¡¨ç¾ã®ãªãã¸ã§ã¯ã ã¢ãã«ã®æ¦è¦ã«ã¤ãã¦ã¯ããæ£è¦è¡¨ç¾ã®ãªãã¸ã§ã¯ã ã¢ãã«ããã覧ãã ããã
æ£è¦è¡¨ç¾ã®è¨èªã«ã¤ãã¦è©³ããã¯ããæ£è¦è¡¨ç¾è¨èª - ã¯ã¤ã㯠ãªãã¡ã¬ã³ã¹ããåç §ããããæ¬¡ã®è³æã®ããããããã¦ã³ãã¼ããã¦å°å·ãã¦ãã ããã
- Word (.docx) å½¢å¼ã®ã¯ã¤ã㯠ãªãã¡ã¬ã³ã¹
- PDF (.pdf) å½¢å¼ã®ã¯ã¤ã㯠ãªãã¡ã¬ã³ã¹
æ£è¦è¡¨ç¾ã®ä¾
String ã¯ã©ã¹ã«ã¯ãæååå ã®ãªãã©ã«æååãæ¤ç´¢ããéã«ä½¿ç¨ã§ããæååã®æ¤ç´¢ã¡ã½ããã¨ç½®æã¡ã½ãããå«ã¾ãã¦ãã¾ãã æ£è¦è¡¨ç¾ã¯ã次ã®ä¾ã«ç¤ºãããã«ãæååå ã®é¨åæååã®ãããããæ¤ç´¢ããå ´åãã¾ãã¯æååå ã®ãã¿ã¼ã³ãèå¥ããå ´åã«æãå½¹ç«ã¡ã¾ãã
è¦å
System.Text.RegularExpressions ã使ç¨ãã¦ä¿¡é ¼ã§ããªãå
¥åãå¦çããã¨ãã¯ãã¿ã¤ã ã¢ã¦ããæ¸¡ãã¾ãã æªæã®ããã¦ã¼ã¶ã¼ã RegularExpressions
ã«å
¥åãæä¾ãã¦ããµã¼ãã¹æå¦æ»æãè¡ãå¯è½æ§ãããã¾ãã RegularExpressions
ã使ç¨ãã ASP.NET Core ãã¬ã¼ã ã¯ã¼ã¯ API ã¯ãã¿ã¤ã ã¢ã¦ããæ¸¡ãã¾ãã
ãã³ã
System.Web.RegularExpressions åå空éã«ã¯ãæ£è¦è¡¨ç¾ãªãã¸ã§ã¯ããããããå«ã¾ãã¦ãã¾ãããã®ãªãã¸ã§ã¯ãã¯ãHTMLãXMLãASP.NET ææ¸ã®æååãè§£æããäºåå®ç¾©æ¸ã¿æ£è¦è¡¨ç¾ãã¿ã¼ã³ãå®è£ ãã¾ãã ãã¨ãã°ãTagRegex ã¯ã©ã¹ã¯æååã®éå§ã¿ã°ãèå¥ãã¾ããCommentRegex ã¯ã©ã¹ã¯æååã® ASP.NET ã³ã¡ã³ããèå¥ãã¾ãã
ä¾ 1: é¨åæååã®ç½®æ
æ°åã«æ¬ç§° (Mr.ãMrs.ãMissãã¾ã㯠Ms.) ãä»ãã¦ããå ´åãããååããå®å ãªã¹ãã«å«ã¾ããã¨ãã¾ãã ãªã¹ãããå°çã©ãã«ãçæããã¨ãã«ã¿ã¤ãã«ãå«ããªãã¨ãã¾ãã ãã®å ´åãæ¬¡ã®ä¾ã«ç¤ºãããã«ãæ£è¦è¡¨ç¾ã使ç¨ãã¦ã¿ã¤ãã«ãåé¤ã§ãã¾ãã
using System;
using System.Text.RegularExpressions;
public class Example
{
public static void Main()
{
string pattern = "(Mr\\.? |Mrs\\.? |Miss |Ms\\.? )";
string[] names = { "Mr. Henry Hunt", "Ms. Sara Samuels",
"Abraham Adams", "Ms. Nicole Norris" };
foreach (string name in names)
Console.WriteLine(Regex.Replace(name, pattern, String.Empty));
}
}
// The example displays the following output:
// Henry Hunt
// Sara Samuels
// Abraham Adams
// Nicole Norris
Imports System.Text.RegularExpressions
Module Example
Public Sub Main()
Dim pattern As String = "(Mr\.? |Mrs\.? |Miss |Ms\.? )"
Dim names() As String = {"Mr. Henry Hunt", "Ms. Sara Samuels", _
"Abraham Adams", "Ms. Nicole Norris"}
For Each name As String In names
Console.WriteLine(Regex.Replace(name, pattern, String.Empty))
Next
End Sub
End Module
' The example displays the following output:
' Henry Hunt
' Sara Samuels
' Abraham Adams
' Nicole Norris
æ£è¦è¡¨ç¾ãã¿ã¼ã³ (Mr\.? |Mrs\.? |Miss |Ms\.? )
ã¯ã"Mr "ã"Mr. "ã"Mrs "ã"Mrs. "ã"Miss "ã"Ms "ãã¾ã㯠"Ms. " ã®åºç¾ã¨ä¸è´ãã¾ãã Regex.Replace ã¡ã½ãããå¼ã³åºãã¨ãä¸è´ããæååã String.Empty ã«ç½®ãæãããã¾ããã¤ã¾ããå
ã®æååããåé¤ããã¾ãã
ä¾ 2:éè¤ããåèªã®èå¥
è¨è¿°è ãåèªã誤ã£ã¦éè¤å ¥åããã¨ããã¨ã©ã¼ãããããã¾ãã æ¬¡ã®ä¾ã«ç¤ºãããã«ãæ£è¦è¡¨ç¾ã使ç¨ãã¦éè¤ããåèªãèå¥ãã¾ãã
using System;
using System.Text.RegularExpressions;
public class Class1
{
public static void Main()
{
string pattern = @"\b(\w+?)\s\1\b";
string input = "This this is a nice day. What about this? This tastes good. I saw a a dog.";
foreach (Match match in Regex.Matches(input, pattern, RegexOptions.IgnoreCase))
Console.WriteLine($"{match.Value} (duplicates '{match.Groups[1].Value}') at position {match.Index}");
}
}
// The example displays the following output:
// This this (duplicates 'This') at position 0
// a a (duplicates 'a') at position 66
Imports System.Text.RegularExpressions
Module modMain
Public Sub Main()
Dim pattern As String = "\b(\w+?)\s\1\b"
Dim input As String = "This this is a nice day. What about this? This tastes good. I saw a a dog."
For Each match As Match In Regex.Matches(input, pattern, RegexOptions.IgnoreCase)
Console.WriteLine("{0} (duplicates '{1}') at position {2}", _
match.Value, match.Groups(1).Value, match.Index)
Next
End Sub
End Module
' The example displays the following output:
' This this (duplicates 'This') at position 0
' a a (duplicates 'a') at position 66
æ£è¦è¡¨ç¾ãã¿ã¼ã³ \b(\w+?)\s\1\b
ã¯ã次ã®ããã«è§£éã§ãã¾ãã
ãã¿ã¼ã³ | è§£é |
---|---|
\b |
ã¯ã¼ãå¢çããéå§ãã¾ãã |
(\w+?) |
1 ã¤ä»¥ä¸ (ãã ããã§ããã ãå°ãªãæåæ°) ã®åèªæåã¨ä¸è´ãã¾ãã åæã«ã\1 ã¨ããã°ã«ã¼ããå½¢æãã¾ãã |
\s |
ç©ºç½æåã¨ä¸è´ãã¾ãã |
\1 |
\1 ã¨ããååã®ã°ã«ã¼ãã¨çããé¨åæååã¨ä¸è´ãã¾ãã |
\b |
ã¯ã¼ãå¢çã«ä¸è´ãã¾ãã |
Regex.Matches ã¡ã½ããã¯ãæ£è¦è¡¨ç¾ãªãã·ã§ã³ã RegexOptions.IgnoreCase ã«è¨å®ãã¦å¼ã³åºããã¾ãã ãããã£ã¦ãç §åæä½ã§ã¯å¤§æåã¨å°æåãåºå¥ãããããã®ä¾ã§ã¯é¨åæåå "This this" ãéè¤ã¨ãã¦èå¥ããã¾ãã
å ¥åæååã«ã¯é¨åæåå "this? This" ãå«ã¾ãã¦ãã¾ãã ãã ããå¥èªç¹ãä»å¨ããã®ã§ãéè¤ã¨ãã¦èå¥ããã¾ããã
ä¾ 3:ã«ã«ãã£ã«ä¾åããæ£è¦è¡¨ç¾ã®åçãªæ§ç¯
ããã§ã¯ãæ£è¦è¡¨ç¾ã«ããå¼·åãªããã¹ãå¦çã¨ã.NET ã®æè»ãªã°ãã¼ããªã¼ã¼ã·ã§ã³æ©è½ãçµã¿åããã¦ä½¿ç¨ããä¾ãç´¹ä»ãã¾ãã ãã®ä¾ã§ã¯ãã·ã¹ãã ã®ç¾å¨ã®ã«ã«ãã£ã§ç¨ãããã¦ããé貨å¤ã®å½¢å¼ã調ã¹ãããã«ãNumberFormatInfo ãªãã¸ã§ã¯ãã使ç¨ããã¦ãã¾ãã ããã«ããã®æ å ±ãåºã«ãããã¹ãããé貨å¤ãæ½åºããæ£è¦è¡¨ç¾ãåçã«æ§ç¯ãã¾ãã æ¤åºãããä¸è´ãã¨ã«ãæ°å¤æååã®ã¿ãå«ãã ãµãã°ã«ã¼ããæ½åºããDecimal å¤ã«å¤æãã¦ãéç®ã®åè¨ãè¨ç®ãã¾ãã
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text.RegularExpressions;
public class Example
{
public static void Main()
{
// Define text to be parsed.
string input = "Office expenses on 2/13/2008:\n" +
"Paper (500 sheets) $3.95\n" +
"Pencils (box of 10) $1.00\n" +
"Pens (box of 10) $4.49\n" +
"Erasers $2.19\n" +
"Ink jet printer $69.95\n\n" +
"Total Expenses $ 81.58\n";
// Get current culture's NumberFormatInfo object.
NumberFormatInfo nfi = CultureInfo.CurrentCulture.NumberFormat;
// Assign needed property values to variables.
string currencySymbol = nfi.CurrencySymbol;
bool symbolPrecedesIfPositive = nfi.CurrencyPositivePattern % 2 == 0;
string groupSeparator = nfi.CurrencyGroupSeparator;
string decimalSeparator = nfi.CurrencyDecimalSeparator;
// Form regular expression pattern.
string pattern = Regex.Escape( symbolPrecedesIfPositive ? currencySymbol : "") +
@"\s*[-+]?" + "([0-9]{0,3}(" + groupSeparator + "[0-9]{3})*(" +
Regex.Escape(decimalSeparator) + "[0-9]+)?)" +
(! symbolPrecedesIfPositive ? currencySymbol : "");
Console.WriteLine( "The regular expression pattern is:");
Console.WriteLine(" " + pattern);
// Get text that matches regular expression pattern.
MatchCollection matches = Regex.Matches(input, pattern,
RegexOptions.IgnorePatternWhitespace);
Console.WriteLine($"Found {matches.Count} matches.");
// Get numeric string, convert it to a value, and add it to List object.
List<decimal> expenses = new List<Decimal>();
foreach (Match match in matches)
expenses.Add(Decimal.Parse(match.Groups[1].Value));
// Determine whether total is present and if present, whether it is correct.
decimal total = 0;
foreach (decimal value in expenses)
total += value;
if (total / 2 == expenses[expenses.Count - 1])
Console.WriteLine($"The expenses total {expenses[expenses.Count - 1]:C2}.");
else
Console.WriteLine($"The expenses total {total:C2}.");
}
}
// The example displays the following output:
// The regular expression pattern is:
// \$\s*[-+]?([0-9]{0,3}(,[0-9]{3})*(\.[0-9]+)?)
// Found 6 matches.
// The expenses total $81.58.
Imports System.Collections.Generic
Imports System.Globalization
Imports System.Text.RegularExpressions
Public Module Example
Public Sub Main()
' Define text to be parsed.
Dim input As String = "Office expenses on 2/13/2008:" + vbCrLf + _
"Paper (500 sheets) $3.95" + vbCrLf + _
"Pencils (box of 10) $1.00" + vbCrLf + _
"Pens (box of 10) $4.49" + vbCrLf + _
"Erasers $2.19" + vbCrLf + _
"Ink jet printer $69.95" + vbCrLf + vbCrLf + _
"Total Expenses $ 81.58" + vbCrLf
' Get current culture's NumberFormatInfo object.
Dim nfi As NumberFormatInfo = CultureInfo.CurrentCulture.NumberFormat
' Assign needed property values to variables.
Dim currencySymbol As String = nfi.CurrencySymbol
Dim symbolPrecedesIfPositive As Boolean = CBool(nfi.CurrencyPositivePattern Mod 2 = 0)
Dim groupSeparator As String = nfi.CurrencyGroupSeparator
Dim decimalSeparator As String = nfi.CurrencyDecimalSeparator
' Form regular expression pattern.
Dim pattern As String = Regex.Escape(CStr(IIf(symbolPrecedesIfPositive, currencySymbol, ""))) + _
"\s*[-+]?" + "([0-9]{0,3}(" + groupSeparator + "[0-9]{3})*(" + _
Regex.Escape(decimalSeparator) + "[0-9]+)?)" + _
CStr(IIf(Not symbolPrecedesIfPositive, currencySymbol, ""))
Console.WriteLine("The regular expression pattern is: ")
Console.WriteLine(" " + pattern)
' Get text that matches regular expression pattern.
Dim matches As MatchCollection = Regex.Matches(input, pattern, RegexOptions.IgnorePatternWhitespace)
Console.WriteLine("Found {0} matches. ", matches.Count)
' Get numeric string, convert it to a value, and add it to List object.
Dim expenses As New List(Of Decimal)
For Each match As Match In matches
expenses.Add(Decimal.Parse(match.Groups.Item(1).Value))
Next
' Determine whether total is present and if present, whether it is correct.
Dim total As Decimal
For Each value As Decimal In expenses
total += value
Next
If total / 2 = expenses(expenses.Count - 1) Then
Console.WriteLine("The expenses total {0:C2}.", expenses(expenses.Count - 1))
Else
Console.WriteLine("The expenses total {0:C2}.", total)
End If
End Sub
End Module
' The example displays the following output:
' The regular expression pattern is:
' \$\s*[-+]?([0-9]{0,3}(,[0-9]{3})*(\.[0-9]+)?)
' Found 6 matches.
' The expenses total $81.58.
ç¾å¨ "è±èª - ç±³å½" (en-US) ã«ã«ãã£ã使ç¨ããã¦ããã³ã³ãã¥ã¼ã¿ã¼ã§ã¯ã\$\s*[-+]?([0-9]{0,3}(,[0-9]{3})*(\.[0-9]+)?)
ã¨ããæ£è¦è¡¨ç¾ãåçã«ä½æããã¾ãã ãã®æ£è¦è¡¨ç¾ãã¿ã¼ã³ã¯ã次ã®ããã«è§£éã§ãã¾ãã
ãã¿ã¼ã³ | è§£é |
---|---|
\$ |
å
¥åæååã«å«ã¾ããåä¸ã®ãã«è¨å· ($ ) ãæ¤ç´¢ãã¾ãã ãã®æ£è¦è¡¨ç¾ãã¿ã¼ã³æååã«ä½¿ç¨ããã¦ããåè¨å·ã¯ããã«è¨å·ãæ£è¦è¡¨ç¾ã®ã¢ã³ã«ã¼ã§ã¯ãªããæåã¨ãã¦æ±ããã¨ãæå³ãã¾ãã $ è¨å·ã®ã¿ã®å ´åãæ£è¦è¡¨ç¾ã¨ã³ã¸ã³ãæååã®æå¾ã§ä¸è´ã®éå§ã試ã¿ãå¿
è¦ããããã¨ã示ãã¾ãã ç¾å¨ã®ã«ã«ãã£ã®é貨è¨å·ãæ£è¦è¡¨ç¾è¨å·ã¨ãã¦è§£éãããã®ãé²ããããä¾ã§ã¯ãRegex.Escape ã¡ã½ãããå¼ã³åºãã¦æåãã¨ã¹ã±ã¼ããã¦ãã¾ãã |
\s* |
ç©ºç½æåã® 0 å以ä¸ã®ç¹°ãè¿ããæ¤ç´¢ãã¾ãã |
[-+]? |
æ£ã®ç¬¦å·ã¾ãã¯è² ã®ç¬¦å·ã® 0 åã¾ã㯠1 åã®ç¹°ãè¿ããæ¤ç´¢ãã¾ãã |
([0-9]{0,3}(,[0-9]{3})*(\.[0-9]+)?) |
å¤å´ã®ãã£ãã«ãã£ã¦ãã®å¼ããã£ãã㣠ã°ã«ã¼ãã¾ãã¯é¨åå¼ã¨ãã¦å®ç¾©ããã¾ãã ä¸è´ãè¦ã¤ãã£ãå ´åããã®ä¸è´ããæååã®ããã®é¨åã«é¢ããæ å ±ããGroup ããããã£ããè¿ããã GroupCollection ãªãã¸ã§ã¯ãã® 2 ã¤ç®ã® Match.Groups ãªãã¸ã§ã¯ãããåå¾ã§ãã¾ã ã³ã¬ã¯ã·ã§ã³ã® 1 ã¤ç®ã®è¦ç´ ã¯ãä¸è´ããæååå ¨ä½ã表ãã¾ãã |
[0-9]{0,3} |
10 鲿°å (0 ï½ 9) ã® 0 å以ä¸ã3 å以ä¸ã®ç¹°ãè¿ããæ¤ç´¢ãã¾ãã |
(,[0-9]{3})* |
æ¡åºåãè¨å·ã¨ 3 æ¡ã® 10 鲿°åã® 0 å以ä¸ã®ç¹°ãè¿ããæ¤ç´¢ãã¾ãã |
\. |
åä¸ã®å°æ°ç¹ãæ¤ç´¢ãã¾ãã |
[0-9]+ |
10 鲿°åã® 1 å以ä¸ã®ç¹°ãè¿ããæ¤ç´¢ãã¾ãã |
(\.[0-9]+)? |
å°æ°ç¹ã¨ 1 æ¡ä»¥ä¸ã®æ°åã® 0 åã¾ã㯠1 åã®ç¹°ãè¿ããæ¤ç´¢ãã¾ãã |
åãµããã¿ã¼ã³ãå ¥åæååå ã«è¦ã¤ããã¨ä¸è´ã¨å¤æããããã®ä¸è´ã«é¢ããæ å ±ãå«ãã Match ãªãã¸ã§ã¯ãã MatchCollection ãªãã¸ã§ã¯ãã«è¿½å ããã¾ãã
é¢é£è¨äº
Title | 説æ |
---|---|
æ£è¦è¡¨ç¾è¨èª - ã¯ã¤ã㯠ãªãã¡ã¬ã³ã¹ | æ£è¦è¡¨ç¾ãå®ç¾©ããããã«ä½¿ãä¸é£ã®æåãæ¼ç®åãããã³æ§æä½ã«ã¤ãã¦èª¬æãã¾ãã |
æ£è¦è¡¨ç¾ã®ãªãã¸ã§ã¯ã ã¢ãã« | æ£è¦è¡¨ç¾ã¯ã©ã¹ã®ä½¿ç¨æ¹æ³ã«ã¤ãã¦è©³ãã説æããã³ã¼ãä¾ã示ãã¾ãã |
æ£è¦è¡¨ç¾ã®åä½ã®è©³ç´° | .NET ã®æ£è¦è¡¨ç¾ã®æ©è½ã¨åä½ã«ã¤ãã¦èª¬æãã¾ãã |
Visual Studio ã§ã®æ£è¦è¡¨ç¾ã®ä½¿ç¨ |