Hi,
i want to learn how to parse user input and check its validity in c#,
for example i want the user to input a specific format : "x,y to x,y" where x is a number and y is a number (entered by the user)
like : "1,4 to 3,8"
how do i do it?
i can do int.TryParse for each single number ( taking firs x then first y, and after, second x and second y)
but i want the user to input it all in one string and to get the x's and y's from it
how to do it