14
1
using System;
2
using System.Text.RegularExpressions;
3
4
public class Program
5
{
6
public static void Main()
7
{
8
string phrase = "AB4000-01-433593-1-1";
9
string[] words = phrase.Split('-');
10
System.Console.WriteLine(words[0]);
11
System.Console.WriteLine(words[1]);
12
System.Console.WriteLine(words[0] + "-" + (words[1]));
13
}
14
}
Cached Result
Compilation error (line 3, col 1): Unexpected character '➤'
Compilation error (line 3, col 2): Unexpected character '��'
Compilation error (line 3, col 3): Unexpected character '��'
Compilation error (line 3, col 33): Unexpected character '��'
Compilation error (line 3, col 34): Unexpected character '��'
Compilation error (line 3, col 44): Unexpected character '►'
Compilation error (line 3, col 45): Unexpected character '►'
Compilation error (line 13, col 14): Preprocessor directives must appear as the first non-whitespace character on a line
Compilation error (line 1, col 1): A namespace cannot directly contain members such as fields or methods
Compilation error (line 3, col 2): Unexpected character '��'
Compilation error (line 3, col 3): Unexpected character '��'
Compilation error (line 3, col 33): Unexpected character '��'
Compilation error (line 3, col 34): Unexpected character '��'
Compilation error (line 3, col 44): Unexpected character '►'
Compilation error (line 3, col 45): Unexpected character '►'
Compilation error (line 13, col 14): Preprocessor directives must appear as the first non-whitespace character on a line
Compilation error (line 1, col 1): A namespace cannot directly contain members such as fields or methods