match クラス : Length ゲッタ
説明
部分文字列の長さを取得します。
構文
matchInstance.Length
引数
無し。
返り値
| クラス | 説明 |
| int | 部分文字列の長さ。 |
サンプルコード
| 1: | regex pattern = new regex("(b+)"); |
| 2: | match firstMatch= pattern.MatchM("aaabbbaaccc"); // "bbb"。 |
| 3: | int len = firstMatch.Length; // 3。 |
注意
これは、System.Text.RegularExpressions.Match.Length プロパティのラッパーです。


