色付きのテキストをコンソールに出力できるコンソールクラスを作成したいと思います。 だから私は(printfのための基本的ラッパー)のような何かを行うことができます: Console::Print("This is a non-coloured message\n");
Console::Warning("This is a YELLOW warning message\n");
Console
私は、複数行の文字列を解析し、パターンの後に続く行を取得しようとしています。 テキスト:
hello john
your username is: jj
thanks for signing up
"ユーザー名は次のとおりです。" の後に私はすべて別名、JJを抽出したい 一つの方法: text = "hello john\nyour username is: jj\nthanks fo