I’m trying to convert a string with modified GUID (e.g. 6b5737e5728786794fff5e009d74d706) to a hex string with format like \x..\x..
(String format and hex chars doesn’t work for me). Any ideas?
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.
If you want to go a non-regex route, then the following might work:
If you want your string to contain (for your example) the code points U+006B, U+0057, U+0037, &c. then think again please. Strings are no byte containers, they are text containers. You want a
byte[]in that case: