In my code, I am attempting to manipulate a string:
Some text - 04.09.1996 - 40-18
I'd like to split this into three substrings: Some text, 04.09.1996, and 40-18.
When I use the Split method with a hyphen as a separator, the return value is an array of four strings: Some text, 04.09.1996, 40, and 18. How can I make this code work as described above?
Some textinclude " - " in it? For instance, can your input string look like thisABC - DEF - 04.09.1996 - 40-18?