I’m looking for a nice tight regex solution to this problem. I’m looking to reformat an UNC into a Uri
Problem:
UNC directory needs to be reformatted into a Uri
\\server\d$\x\y\z\AAA
needs to look like:
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.
I think a replace is easier to write and understand than Regex in this case. Given:
You can do a double replace: