If I do this:
string text = "Hello, how are you?";
string[] split = text.Split('h', 'o');
How do I get a list of what delimiter was used between each split? I’m trying to recreate the string as a whole.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As @Davy8 mentioned, there is no built in way. Here’s a VERY simple example to get you going on writing a custom method.