How do I split a string in C# based on letters and numbers?

You could do this: var match = Regex. Match(yourString, "(\w+)(\d+)"); var month = match. Groups0.

Value; var day = int. Parse(match. Groups1.

Value).

You are not saying it directly, but from your example it seems are you just trying to parse a date. If that's true, how about this solution: DateTime date; if(DateTime. TryParseExact("Mar10", "MMMdd", new CultureInfo("en-US"), DateTimeStyles.

None, out date)) { Console. WriteLine(date. Month); Console.

WriteLine(date. Day); }.

Char array = "Mar10".ToCharArray(); int index = 0; for(int i=0;i.

Var match = Regex. Var month = match. Var day = int.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions