in localized/ja/05-LanguagesAndFrameworks/RegularExpresssions/1-RegularExpressions.cs [30:39]
public static void StringLiteralAsRegularExpression()
{
// 4. Make arbitrary string a syntax highlighted regex
// Note pattern is not syntax highlighted
// Place text caret on string literal
// Alt+Enter and select "Make regular expression here"
// Note that string literal is now syntax highlighted
const string pattern = @"(?<Word>[A-Za-z]+)(\s|\t)+(?# Comment)";
var match = Regex.Match("abc", pattern, RegexOptions.ExplicitCapture);
}