I have a string.
I have to find a specific part of this string. I would like to use regex.
I need to find destination part in this name*=UTF-8”destination\r\n string. Which would be the good pattern?
Thanks.
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.
To find
name*=UTF-8''destination\r\nyou can use something likeThe part of the string after the
=would then be in capturing group 1.if you really want only the
destinationpart, its probably more like this*is a special character in regex (quantifier for 0 or more occurences) so you need to escape it\*()brackets create a capture group (access likeresult.Groups[1]))$is an anchor that matches the end of the line. (your\r\n)but your provided information is a bit sparse, can you explain a bit more and give more context?