string Text = "todio@mail.ru:hdg3725" ; string [] separators = { ";" , ":" }; string [] words = Text.Split(separators, StringSplitOptions.RemoveEmptyEntries); Console.WriteLine( "Acc: " + words[ 0 ] + "\n" ); Console.WriteLine( "Pass: " + words[ 1 ] + "\n" ); Console.ReadKey();