0

C# で一致しない正規表現を取得しました。

string auth = @"oauth_consumer_key=""0685bd9184jfhq22""";
string pattern = "oauth_consumer_key=\"(\\d+)%";
MatchCollection matches = Regex.Matches(auth, pattern);

私はいつも0試合を取得します。認証文字列から 0685bd9184jfhq22 文字列を抽出しようとしています。

4

3 に答える 3