<span style="cursor: pointer;">$$</span>
how can i get <span style="cursor: pointer;"> and </span> from this string. Everything around $$.
No need to be regex.
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.
Well, you could just use:
Note that unlike the overloads taking
charseparators, you have to provide theStringSplitOptions, and you have to manually create the array. (Of course if you’re going to do this repeatedly you would probably want to reuse the array.) You can also optionally specify the maximum number of tokens to split the input into. See the string.Split overload list for more information.Short but complete program:
Of course if you know there are only going to be two parts, another option is to use
IndexOf: